getDonations
suspend fun getDonations(broadcasterId: String, first: Int = 20, after: String? = null): List<CharityDonation>
Twitch API: Get Charity Campaign Donations
Gets the list of donations that users have made to the broadcaster's active charity campaign.
Return
the list of donations that users have made to the broadcaster's charity campaign. The list is empty if the broadcaster is not currently running a charity campaign.
Parameters
broadcasterId
the ID of the broadcaster that's currently running a charity campaign. This ID must match the user ID in the access token.
first
the maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100. The default is 20.
after
the cursor used to get the next page of results.