tuber (version 0.9.9)

list_channel_resources: Returns List of Requested Channel Resources

Description

Returns List of Requested Channel Resources

Usage

list_channel_resources(
  filter = NULL,
  part = "contentDetails",
  max_results = 50,
  page_token = NULL,
  hl = "en-US",
  ...
)

Arguments

filter

string; Required. named vector of length 1 potential names of the entry in the vector: category_id: YouTube guide category that returns channels associated with that category username: YouTube username that returns channel associated with that username. channel_id: a comma-separated list of the YouTube channel ID(s) for the resource(s) that are being retrieved

part

a comma separated list of channel resource properties that response will include string. Required. One of the following: auditDetails, brandingSettings, contentDetails, contentOwnerDetails, id, invideoPromotion, localizations, snippet, statistics, status, topicDetails. Default is contentDetails.

max_results

Maximum number of items that should be returned. Integer. Optional. Can be between 0 and 50. Default is 50.

page_token

specific page in the result set that should be returned, optional

hl

Language used for text values. Optional. Default is en-US. For other allowed language codes, see list_langs.

Additional arguments passed to tuber_GET.

Value

list

References

https://developers.google.com/youtube/v3/docs/channels/list

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
# Set API token via yt_oauth() first

list_channel_resources(filter = c(channel_id = "UCT5Cx1l4IS3wHkJXNyuj4TA"))
list_channel_resources(filter = c(username = "latenight"), part = "id, contentDetails")
list_channel_resources(filter = c(username = "latenight"), part = "id, contentDetails", 
max_results = 10)
# }

Run the code above in your browser using DataLab