@seamapi/http - v2.5.0
    Preparing search index...

    Class SeamHttpConnectWebviews

    Client for the Seam API /connect_webviews routes.

    Index
    client: AxiosInstance

    The client used to make HTTP requests to the Seam API.

    defaults: Required<SeamHttpRequestOptions>

    Default request options used for requests made by this client.

    • Creates a new Connect Webview.

      To enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a connect_webview. After creating the Connect Webview, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.

      You should make a new connect_webview for each unique login request. Each connect_webview tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.

      See also: Connect Webview Process.

      Parameters

      Returns ConnectWebviewsCreateRequest

    • Updates the client session token used by this client for authentication.

      Parameters

      • clientSessionToken: string

      Returns Promise<void>

      If this client was not created with a client session token.

    • Creates a new SeamHttpConnectWebviews authenticated with a console session token and scoped to a workspace.

      Parameters

      Returns SeamHttpConnectWebviews

    • Creates a new SeamHttpConnectWebviews authenticated with a personal access token and scoped to a workspace.

      Parameters

      Returns SeamHttpConnectWebviews

    • Creates a new SeamHttpConnectWebviews authenticated with a client session token for the user identified by the user identifier key. The client session is created with the publishable key if it does not exist.

      Parameters

      Returns Promise<SeamHttpConnectWebviews>