getGoals

suspend fun getGoals(broadcasterId: String): List<CreatorGoal>

Twitch API: Get Creator Goals

Gets the broadcaster's list of active goals. Use this endpoint to get the current progress of each goal.

Instead of polling for the progress of a goal, consider subscribing to receive notifications when a goal makes progress using the channel.goal.progress subscription type.

Return

the list of goals. The list is empty if the broadcaster hasn't created goals.

Parameters

broadcasterId

the ID of the broadcaster that created the goals. This ID must match the user ID in the user access token.