addVideoToYouTubePlaylist

Adds a video to the YouTube playlist whose ID is stored in the passed Credentials.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
JSONValue
addVideoToYouTubePlaylist
(,,
const string videoID
,
const Flag!"recursing" recursing = No.recursing
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

creds Credentials

Credentials aggregate.

videoID string

YouTube video ID of the video 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