getSpotifyTokens

Request OAuth API tokens from Spotify.

version(TwitchSupport && WithTwitchPlugin)
private
void
getSpotifyTokens
(,
const string code
,
const string caBundleFile
)

Parameters

creds Credentials

Credentials aggregate.

code string

Spotify authorisation code.

caBundleFile string

Path to a cacert.pem bundle file.

Throws

UnexpectedJSONException

on unexpected JSON.

ErrorJSONException

if the returned JSON has an "error" field.