@ptkl/sdk - v0.9.9
    Preparing search index...

    Class Sandbox

    Hierarchy

    • default
      • Sandbox
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

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

      Returns Sandbox

    Properties

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

    Methods

    • Parameters

      • client: AxiosInstance

      Returns Sandbox

    • Call the sandbox service to execute a serverless function

      Parameters

      • name: string
      • data: any

      Returns Promise<AxiosResponse<any, any>>

      const result = await platform.sandbox().spark("myFunction", { foo: "bar" })