The base URL for all API requests. BaseUrl
Optional
options: ApiClientOptionsOptional configuration options. ApiClientOptions
Private
#oauthStores the OAuth token response
Adds an authorization header to the provided RequestInit options if authentication of type "Basic" is configured. If the authentication type is "OAuth", it will fetch a new access token or use the stored access token if it exists and is still valid. if the authentication type is "Custom", it will use the provided value.
The RequestInit options to which the authorization header should be added.
The updated RequestInit options with the authorization header, if applicable.
Uses customFetch if it is set, otherwise uses the default fetch
RequestInfo
Optional
init: RequestInitRequestInit
a response wrapped in a promise
Protected
getFetch the OAuth token from the BaseUrl
the Client ID
the Client secret
Retrieves a cached response from the cache.
The cache key to use for retrieving the cached response.
A promise wrapping the cached response as a generic type.
Calls the appropriate logger method based on level
level based on npm log levels
the message to log
Generated using TypeDoc
Base class providing common functionality for all API clients.
See
ApiClientOptions and BaseUrl