getCampaign

suspend fun getCampaign(broadcasterId: String): CharityCampaign?

Twitch API: Get Charity Campaign

Gets information about the charity campaign that a broadcaster is running. For example, the campaign's fundraising goal and the current amount of donations.

Return

the charity campaign that the broadcaster is currently running, or null if the broadcaster is not 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.