solarnetwork-api-core
    Preparing search index...

    Class JsonClientSupport<API, T>Abstract

    An abstract class for JSON client support.

    Type Parameters

    • API extends UrlHelper

      the URL helper type

    • T

      the result data type

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    api: API

    The URL helper instance to use.

    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)

      • Optionaldelay: number

        an optional number of milliseconds to sleep before initiating the request

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

      a function that accepts a callback argument