@ptkl/sdk - v1.12.0
    Preparing search index...

    Base client for the platform API Classes that extend PlatformBaseClient have intentins of only working in platform context

    PlatformBaseClient

    The axios instance to use for the client

    // if sdk is used in the forge app that is running in the platform context
    const utils = new ComponentUtils()
    // this won't work outside of platform context because client needs authtorization to communicate with the API.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • Optionaloptions: { env?: string; host?: string; token?: string }

      Returns default

    Properties

    client: AxiosInstance
    env: null | string = null
    host: null | string = null
    token: null | string = null

    Methods

    • Parameters

      • ref: string
      • key: string
      • value: any

      Returns Promise<any>

    • Parameters

      • buffer: Buffer

      Returns Promise<any>

    • Parameters

      • appUuid: string
      • serviceName: string
      • Optionaloptions: { body?: any; headers?: Record<string, string>; query?: Record<string, string> }

      Returns Promise<any>

    • Parameters

      • ref: string

      Returns Promise<any>

    • Returns Promise<any>

    • Returns Promise<any>

    • Parameters

      • ref: string

      Returns Promise<any>

    • Parameters

      • ref: string
      • version: string

      Returns Promise<any>

    • Parameters

      • client: AxiosInstance

      Returns default

    • Parameters

      • ref: string
      • variables: Record<string, any>

      Returns Promise<any>