Learn R Programming

tuber (version 1.0.1)

add_video_to_playlist: Add Video to Playlist

Description

Add Video to Playlist

Usage

add_video_to_playlist(playlist_id, video_id, position = NULL, ...)

Value

Details of the added video in the playlist.

Arguments

playlist_id

string; Required. The ID of the playlist.

video_id

string; Required. The ID of the video to add.

position

numeric; Optional. The position of the video in the playlist. If not provided, the video will be added to the end of the playlist.

...

Additional arguments passed to tuber_POST_json.

References

https://developers.google.com/youtube/v3/docs/playlistItems/insert

Examples

Run this code
if (FALSE) {

# Set API token via yt_oauth() first

add_video_to_playlist(playlist_id = "YourPlaylistID", video_id = "2_gLD1jarfU")
}

Run the code above in your browser using DataLab