Options
All
  • Public
  • Public/Protected
  • All
Menu

Module callFunction

Index

Functions

Functions

Const callFunction

  • callFunction(route: string, postBody?: Record<string, any>): Promise<string>
  • async

    Call a cloud function, created in Easybase interface.

    Parameters

    • route: string

      Route as detailed in Easybase. Found under 'Deploy'. Will be in the form of ####...####-function-name.

    • Optional postBody: Record<string, any>

      Optional object to pass as the body of the POST request. This object will available in your cloud function's event.body.

    Returns Promise<string>

    Response from your cloud function. Detailed with a call to 'return context.succeed("RESPONSE")'.

Generated using TypeDoc