Config

The configuration class will hold the configuration information used when accessing the API.

Constructors

Properties

_authToken: string
_baseUrl: string
_baseUrlLocked: boolean = false
_community: object
_rootDomain: string

Accessors

  • get getCommunity(): object
  • Gets the community currently associated

    Returns object

Methods

  • Set the JSON Web Token (JWT) that will be passed to the API

    Parameters

    • authToken: string

      The JWT

    Returns void

  • Sets the endpoint for the API

    Parameters

    • baseUrl: string

      The url that connects to the APIs base

    • Optional lock: boolean

      If set to true, will lock the baseUrl so it cannot be changed

    Returns void

  • Set the community to be associated with this config through

    Parameters

    • community: Record<string, any>

      The object of the community

    Returns void

  • Set the configuration

    Parameters

    • baseUrl: string

      The url base endpoint of the api

    • authToken: string

      The JSON Web Token

    • Optional lock: boolean

    Returns void

  • Sets the root level domain so data can be accessed across multiple subdomains

    Parameters

    • domain: string

      The domain ie: example.com

    Returns void

Generated using TypeDoc