addTrackToSpotifyPlaylist

Adds a track to the Spotify playlist whose ID is stored in the passed Credentials.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
addTrackToSpotifyPlaylist
(,,
const string trackID
,
const bool recursing = false
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

creds Credentials

Credentials aggregate.

trackID string

Spotify track ID of the track to add.

recursing bool

Whether or not the function is recursing into itself.

Return Value

Type: auto

A JSONValue of the response.

Throws

UnexpectedJSONException

on unexpected JSON.

ErrorJSONException

if the returned JSON has an "error" field.