The Core of the API, handling low-level operations such as making requests and setting the server UUID

Constructors

Properties

domain: string
logger: any
token: string
uuid: string

Methods

  • Internal

    Makes a request with the headers and request data set automatically.

    Parameters

    • method: RequestTypes

      A standared request method.

    • path: string

      The API path to send the request to.

    • Optional data: any

      The data to include with the request.

    Returns Promise<Response>

    Remarks

    The data field is formatted appropriately for whichever request type is given.

  • Internal

    Generates a URL for the given path

    Parameters

    • path: string

      The API path

    Returns string

  • Sets the Server UUID

    Parameters

    • uuid: string

    Returns void

    Remarks

    ℹ️ This can be updated at any time, making all future API calls reference the new Server UUID

Generated using TypeDoc