Endpoint for a product (OTS or Custom).

Hierarchy

  • BaseEndpoint
    • Endpoint

Asynchronous

  • Requests the results of a queued document from the API. Throws an error if the server's response contains one.

    Parameters

    • queueId: string

      The document's ID in the queue.

    Returns Promise<EndpointResponse>

    a Promise containing the parsed result.

Other

owner: string

Account owning the product.

settings: ApiSettings

Settings relating to the API.

urlName: string

URL of a product.

urlRoot: string

Entire root of the URL for API calls.

version: string

Product's version, as a string.

  • Cuts a document's pages according to the given options.

    Parameters

    Returns Promise<void>

  • Reads a response from the API and processes it.

    Parameters

    • options: RequestOptions

      options related to the request itself.

    • resolve: ((value: EndpointResponse | PromiseLike<EndpointResponse>) => void)

      the resolved response

    • reject: ((reason?: any) => void)

      promise rejection reason.

        • (reason?): void
        • Parameters

          • Optionalreason: any

          Returns void

    Returns ClientRequest

    the processed request.

Synchronous