Learn R Programming

tuber (version 2.0.0)

list_channel_sections: List Channel Sections

Description

Returns channel sections matching exactly one supported YouTube filter.

Usage

list_channel_sections(
  channel_id = NULL,
  section_ids = NULL,
  mine = FALSE,
  part = c("snippet", "contentDetails"),
  simplify = TRUE,
  auth = if (mine) "token" else "key",
  ...
)

Value

A data frame when `simplify = TRUE`; otherwise a channel-section list response.

Arguments

channel_id

Channel whose sections should be returned.

section_ids

One or more channel-section IDs.

mine

Set to `TRUE` to return sections for the authenticated user's channel.

part

Character vector of resource parts to return.

simplify

If `TRUE`, return a data frame; otherwise return the raw API response.

auth

Authentication method, `"token"` or `"key"`. `mine = TRUE` requires `"token"`.

...

Additional arguments passed to [tuber_GET()].

References

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

Examples

Run this code
if (FALSE) {
list_channel_sections(channel_id = "UCRw8bIz2wMLmfgAgWm903cA")
list_channel_sections(mine = TRUE, auth = "token")
}

Run the code above in your browser using DataLab