Class BambuClient

The BambuClient is used to invoke the BambuMeta Client APIs. This class captures the connection information, which handles the authentication access to the BambuMeta APIs.

Constructors

  • The constructor requires the tenantId, clientId and clientSecret to properly construct requests to BambuMeta.

    Parameters

    • tenantId: string

      Your tenantId

    • clientId: string

      Your clientId

    • clientSecret: string

      Your client secret

    • domain: string = 'api.bambumeta.software'

      The API domain (eg. api.bambumeta.software)

    • rootPath: string = 'nft'

      The root of the APIs (eg. nft)

    Returns BambuClient

Properties

_clientId: string
_clientSecret: string
_domain: string
_rootPath: string
_tenantId: string
_token: any

Methods

  • This function invokes the BambuMeta API request.

    Type Parameters

    Parameters

    • executeable: T

      Take an object of type <Executable> invokes a BambuMeta API call, and returns back the expected response object.

    Returns Promise<T extends Executable<U>
        ? U
        : never>

    The executable repsonse type for the API request.

  • This internal function is called to retrieve the BambuMeta Access Token when needed

    Returns Promise<string>

    The access token.