getBroadcasterAuthorisation

Returns a broadcaster-level "Bearer" authorisation token for a channel, where such exist.

version(TwitchSupport && WithTwitchPlugin)
package
getBroadcasterAuthorisation

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

channelName string

Name of channel to return token for.

Return Value

Type: auto

A "Bearer" OAuth token string for use in HTTP headers.

Throws

MissingBroadcasterTokenException if there were no broadcaster API token for the supplied channel in the secrets storage.

Meta