Adds a track to the Spotify playlist whose ID is stored in the passed Credentials.
Constructs a Basic OAuth authorisation string based on the Spotify client ID and client secret.
Request OAuth API tokens from Spotify.
Fetches information about a Spotify track by its ID and returns the JSON response.
Refreshes the OAuth API token in the passed Spotify credentials.
Requests a Spotify API authorisation code from Spotify servers, then uses it to obtain an access key and a refresh OAuth key.
Validates a Spotify OAuth token by issuing a simple request for user information, returning the JSON received.
JSON schema for the Spotify error response.
JSON schema for the Spotify token response.
Bits and bobs to get Spotify API credentials for playlist management.