Creates a paginator for fetching donation data.
The paginator provides flexibility by allowing you to fetch donation data page-by-page. This is especially useful for handling large datasets incrementally.
The ID of the user to fetch donations for.
Optional
rateLimiterOptions: RateLimiterRequestOptionsOptional Rate Limiter configuration.
A DonationAlertsApiPaginator instance for donations.
Fetches all donations associated with the specified user.
The ID of the user to fetch all donations for.
Optional
rateLimiterOptions: RateLimiterRequestOptionsOptional Rate Limiter configuration.
A promise that resolves to an array of DonationAlertsDonation objects.
Requires the oauth-donation-index
scope.
This method retrieves all donation data for a user and may take longer to execute, especially for users with a large volume of donations. For better performance with large datasets, consider using the DonationAlertsDonationsApi#createDonationsPaginator method to fetch data in chunks.
HttpError if the API response returns a non-200 status code.
UnregisteredUserError if the user is not registered in the authentication provider.
MissingScopeError if the access token lacks the oauth-donation-index
scope.
Fetches a single page of donation data for a specified user.
The ID of the user to fetch donations for.
Pagination options (e.g., page number to retrieve).
Optional
rateLimiterOptions: RateLimiterRequestOptionsOptional Rate Limiter configuration.
A promise that resolves to an array of DonationAlertsDonation objects.
Requires the oauth-donation-index
scope.
If no pagination options are provided, it defaults to the first page.
HttpError if the HTTP status code is outside the range of 200–299.
UnregisteredUserError if the user is not registered in the authentication provider.
MissingScopeError if the access token lacks the oauth-donation-index
scope.
Donation Alerts Donations API.
Remarks
This API provides functionality to fetch donations associated with a streamer’s account. It supports fetching donations page-by-page, retrieving all donations, and working with paginators for more flexible data handling.
The API methods require the
oauth-donation-index
scope to access the data.