Class JsonClientSupport<T>Abstract

An abstract class for JSON client support.

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Constructor.

    Type Parameters

    • T

    Parameters

    • api: default
    • Optional authBuilder: AuthorizationV2Builder

      the auth builder to authenticate requests with; if not provided then only public data can be queried

    Returns JsonClientSupport<T>

Properties

api: default

The API instance to use.

authBuilder?: AuthorizationV2Builder

An authorization builder to use to make authenticated HTTP requests.

Methods

  • Create a URL fetch requestor.

    The returned function can be passed to d3.queue or invoked directly.

    Type Parameters

    • V

    Parameters

    • url: string

      the URL to request.

    • Optional signUrl: string

      the URL to sign (might be different to url if a proxy is used)

    Returns ((cb) => void)

    a function that accepts a callback argument