getEvents

suspend fun getEvents(broadcasterId: String, first: Int = 1): List<HypeTrainEvent>

Twitch API: Get Hype Train Events

Gets the Hype Train events for the specified broadcaster.

Return

list of HypeTrainEvent objects.

Parameters

broadcasterId

the ID of the broadcaster whose hype train events to get.

first

maximum number of items to return (1-100, default 1).