Class DocumentManager

Represents an interface to a y-sweet document management endpoint.

Hierarchy

  • DocumentManager

Constructors

Properties

Methods

Constructors

Properties

baseUrl: string

The base URL of the remote document manager API.

token?: string

A string that grants the bearer access to the document management API.

Methods

  • Internal helper for making an authorized fetch request to the API.

    Parameters

    • url: string
    • method: "GET"

    Returns Promise<Response>

  • Internal helper for making an authorized fetch request to the API.

    Parameters

    • url: string
    • method: "POST"
    • body: Record<string, any>

    Returns Promise<Response>

  • Get a client token for the given document.

    If you are using authorization, this is expected to be called from your server after a user has authenticated. The returned token should then be passed to the client.

    Parameters

    Returns Promise<ClientToken>

Generated using TypeDoc