Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Client

api

public

Hierarchy

  • Client

Index

Constructors

constructor

Properties

apiUrl

apiUrl: string

JavaScript API bindings for the Okuna social network

param

authToken

authToken: string | null

magicHeaderName

magicHeaderName: string | null | undefined

magicHeaderValue

magicHeaderValue: string | null | undefined

requestStrategy

requestStrategy: string | RequestStrategy

Methods

_buildMagicHeader

  • _buildMagicHeader(name: string | null | undefined, value: string | null | undefined): object
  • _buildMagicHeader() - Builds a magic header to add to the request headers

    Parameters

    • name: string | null | undefined

      the name of the magic header

    • value: string | null | undefined

      the value of the magic header

    Returns object

    an object containing the provided data

    • name: undefined | null | string
    • value: undefined | null | string

auth

categories

circles

communities

connections

devices

emojis

follows

hashtags

health

lists

moderation

notifications

posts

updateAuthToken

  • updateAuthToken(token: string): void
  • updateAuthToken() - Updates the authorization token of the current Client instance

    Parameters

    • token: string

      the new authorization token

    Returns void

userInvites

Generated using TypeDoc