Learn R Programming

YTAnalytics (version 0.2.1)

data_playlistItem_request: Playlist Item Data Requests - YouTube Data API

Description

This is a function to make API calls to the YouTube Data API for playlist item data. While it can be called directly, it is primarily intended to help get lists of videos within a playlist. For more in-depth use of the Data API, please refer to tuber. For more details on the following arguments, please refer to https://developers.google.com/youtube/v3/docs/playlistItems/list

Usage

data_playlistItem_request(
  part = NULL,
  id = NULL,
  maxResults = 5,
  onBehalfOfContentOwner = NULL,
  pageToken = NULL,
  playlistId = NULL,
  videoId = NULL,
  token = getOption("YouTube_Token")
)

Value

data.frame

Arguments

part

Required. String.

id

String.

maxResults

Integer.

onBehalfOfContentOwner

String.

pageToken

String.

playlistId

String.

videoId

String.

token

Required.

Examples

Run this code
if (FALSE) {
data_playlistItem_request(part = "contentDetails",
                          id = "PLA2387dsgkhfs9832hjkhuihsASDF",
                          mine = "true")
}

Run the code above in your browser using DataLab