solarnetwork-datum-loader
    Preparing search index...

    Class JsonClientSupport<T>Abstract

    An abstract class for JSON client support.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructor.

      Type Parameters

      • T

      Parameters

      • api: SolarQueryApi
      • OptionalauthBuilder: AuthorizationV2Builder

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

      Returns JsonClientSupport<T>

    Properties

    api: SolarQueryApi

    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.

      • OptionalsignUrl: string

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

      Returns (cb: LoaderDataCallbackFn<V>) => void

      a function that accepts a callback argument