getSchedule

suspend fun getSchedule(broadcasterId: String): AdSchedule

Twitch API: Get Ad Schedule

Returns ad schedule related information, including snooze, when the last ad was run, when the next ad is scheduled, and if the channel is currently in pre-roll free time.

Return

the ad schedule for the specified broadcaster.

Parameters

broadcasterId

the ID of the broadcaster. Must match the user ID in the auth token.