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

A Voldemort of the results.

Throws

UnexpectedJSONException on unexpected JSON.