Interface Integration

Provides access to all the supported Webex APIs as child objects. Automatically takes care of retrieving and refreshing access tokens, as well as long polling for notifications, when that method is used.

Hierarchy

  • Integration

Properties

devices: Devices
workspaces: Workspaces
xapi: XAPI

Methods

  • Helper function for decoding a JSON Web Token. Throws error if not valid.

    Parameters

    • jwt: string

      B64-encoded JWT string, as received from Webex

    Returns DataObject

  • Sets an action handler, so you are notified when there are important action notifications such as if the integration manifest was updated.

    Parameters

    Returns any

  • Sets an error handler on the integration, so you are notified when something goes wrong. This will typically be called if the SDK is not able to refresh the access token eg due to network issues or if Webex is not available.

    Parameters

    Returns any

  • Checks the state of the integration. Checks that it's able to talk to Webex, implying that the access token is valid etc.

    Returns Promise<any>

    Promise containing the http response from Webex

  • Takes a list of events from Webex and checks if you have event listeners registered that match the incoming notification, and if so deliver it.

    Parameters

    • notifications: DataObject[]

      The payload (list of messages) from an incoming Webex web hook

    Returns any

  • Parameters

    • partialUrl: string
    • Optional method: string
    • Optional body: any
    • Optional contentType: string

    Returns Promise<any>

Generated using TypeDoc