Class Topia

Summary

Create a single instance of Topia axios used for all calls to the public API in all classes

Usage

const topia = await new Topia({
apiDomain: "api.topia.io",
apiKey: "exampleKey",
interactiveKey: "key",
interactiveSecret: "secret",
});

Hierarchy

  • Topia

Implements

Constructors

  • Parameters

    • __namedParameters: {
          apiDomain?: string;
          apiKey?: string;
          apiProtocol?: string;
          interactiveKey?: string;
          interactiveSecret?: Secret;
          mcAuthorizationKey?: string;
      }
      • Optional apiDomain?: string
      • Optional apiKey?: string
      • Optional apiProtocol?: string
      • Optional interactiveKey?: string
      • Optional interactiveSecret?: Secret
      • Optional mcAuthorizationKey?: string

    Returns Topia

Properties

apiDomain?: string
apiKey?: string
apiProtocol?: string
axios: AxiosInstance
interactiveKey?: string
interactiveSecret?: Secret
mcAuthorizationKey?: string