Hierarchy (view full)

Constructors

Properties

apiKey?: string
apiUrl: string
apiUrlPlaceholder: string = config.apiUrlPlaceholder
fetchOpts: Record<string, unknown>
headers: Record<string, unknown> = {}

Methods

  • Parameters

    • body: unknown = undefined
    • headers: Record<string, string> = {}
    • method: RequestMethod = "GET"

    Returns {
        body: unknown;
        headers: {};
        method: RequestMethod;
    }

  • Parameters

    • url: undefined | string

    Returns url is string

  • The standard method for requesting the API, if necessary, you can override how it is done in the example

    Type Parameters

    • T = unknown

    Parameters

    • path: string
    • body: unknown = undefined
    • headers: Record<string, string> = {}
    • method: RequestMethod = "GET"

    Returns Promise<ProviderResponse<T>>