Class BaseBitBadgesApi<T>

Base class for the BitBadges API. It provides a base axios instance and methods for handling API errors.

Type Parameters

Hierarchy (view full)

Constructors

Properties

BACKEND_URL: string = ...
ConvertFunction: ((num) => T)

Type declaration

accessToken: string = ''
apiKey: undefined | string = process.env.BITBADGES_API_KEY
axios: AxiosInstance = ...

Methods