validateSpotifyToken

Validates a Spotify OAuth token by issuing a simple request for user information, returning the JSON received.

version(TwitchSupport && WithTwitchPlugin)
private
validateSpotifyToken
(,
const string caBundleFile
)

Parameters

creds Credentials

Credentials aggregate.

caBundleFile string

Path to a cacert.pem bundle file.

Return Value

Type: auto

The server JSONValue response.

Throws

UnexpectedJSONException

on unexpected JSON.

ErrorJSONException

if the returned JSON has an "error" field.