requestSpotifyKeys

Requests a Spotify API authorisation code from Spotify servers, then uses it to obtain an access key and a refresh OAuth key.

version(TwitchSupport && WithTwitchPlugin)
void
requestSpotifyKeys

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

Throws

UnexpectedJSONException

on unexpected JSON.

ErrorJSONException

if the returned JSON has an "error" field.