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)
package
JSONValue
addTrackToSpotifyPlaylist
(,,
const string trackID
,
const Flag!"recursing" recursing = No.recursing
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

creds Credentials

Credentials aggregate.

trackID string

Spotify track ID of the track to add.

recursing Flag!"recursing"

Whether or not the function is recursing into itself.

Return Value

Type: JSONValue

A JSONValue of the response.

Throws

UnexpectedJSONException

on unexpected JSON.

ErrorJSONException

if the returned JSON has an "error" field.

Meta