Interface ApiConfig

Configuration options for creating an ApiClient.

interface ApiConfig {
    authProvider: AuthProvider;
    fetchOptions?: DonationAlertsCallFetchOptions;
    logger?: Partial<LoggerOptions>;
    rateLimiterOptions?: RateLimiterOptions;
}

Properties

authProvider: AuthProvider

The authentication provider responsible for supplying access tokens to the client.

The client uses this provider to authorize requests to the Donation Alerts API. For more details, refer to the AuthProvider documentation.

Custom options to pass to the fetch method used for API requests.

logger?: Partial<LoggerOptions>

Configuration options for logging within the client.

rateLimiterOptions?: RateLimiterOptions

Settings for the rate limiter that controls the request rate to the API.