Class DroppedAssetFactory

Summary

Create an instance of SDKController class with credentials.

Usage

const credentials = {
assetId: "exampleAsset",
interactiveNonce: "exampleNonce"
interactivePublicKey: "examplePublicKey",
visitorId: 1,
url: "https://topia.io",
}
const topia = await new Topia({
apiDomain: "api.topia.io",
apiKey: "exampleKey",
interactiveKey: "key",
interactiveSecret: "secret",
}
await new SDKController({ credentials, topia });

Hierarchy

Constructors

Properties

credentials: undefined | InteractiveCredentials
jwt?: string
requestOptions: object
topia: Topia

Methods

  • Parameters

    • asset: Asset
    • __namedParameters: {
          assetScale?: number;
          flipped?: boolean;
          interactivePublicKey?: string;
          isInteractive?: boolean;
          layer0?: string;
          layer1?: string;
          position: {
              x: number;
              y: number;
          };
          sceneDropId?: string;
          text?: string;
          textColor?: string;
          textSize?: number;
          textWeight?: string;
          textWidth?: number;
          uniqueName?: string;
          urlSlug: string;
          yOrderAdjust?: number;
      }
      • Optional assetScale?: number
      • Optional flipped?: boolean
      • Optional interactivePublicKey?: string
      • Optional isInteractive?: boolean
      • Optional layer0?: string
      • Optional layer1?: string
      • position: {
            x: number;
            y: number;
        }
        • x: number
        • y: number
      • Optional sceneDropId?: string
      • Optional text?: string
      • Optional textColor?: string
      • Optional textSize?: number
      • Optional textWeight?: string
      • Optional textWidth?: number
      • Optional uniqueName?: string
      • urlSlug: string
      • Optional yOrderAdjust?: number

    Returns Promise<DroppedAsset>

  • Parameters

    • __namedParameters: {
          error?: unknown;
          message?: string;
          params?: object;
          sdkMethod?: string;
      }
      • Optional error?: unknown
      • Optional message?: string
      • Optional params?: object
      • Optional sdkMethod?: string

    Returns {
        data: {};
        message: string;
        method: string;
        params: object;
        sdkMethod: undefined | string;
        stack: string;
        stackTrace: Error;
        status: number;
        success: boolean;
        url: string;
    }

    • data: {}
      • message: string
      • method: string
      • params: object
      • sdkMethod: undefined | string
      • stack: string
      • stackTrace: Error
      • status: number
      • success: boolean
      • url: string
    • Parameters

      • uniqueName: string
      • urlSlug: string
      • credentials: {
            apiKey?: string;
            interactivePublicKey?: string;
            interactiveSecret?: string;
        }
        • Optional apiKey?: string
        • Optional interactivePublicKey?: string
        • Optional interactiveSecret?: string

      Returns Promise<DroppedAsset>

    • Returns AxiosInstance