View source: R/extended_endpoints.R
| get_channel_sections | R Documentation |
Retrieves channel sections (featured channels, playlists, etc.).
get_channel_sections(
channel_id = NULL,
section_id = NULL,
part = "snippet,contentDetails",
simplify = TRUE,
auth = "key",
...
)
channel_id |
Channel ID |
section_id |
Specific section ID (optional) |
part |
Parts to retrieve |
simplify |
Whether to return a simplified data frame |
auth |
Authentication method: "token" (OAuth2) or "key" (API key) |
... |
Additional arguments passed to tuber_GET |
List or data frame with channel section information
## Not run:
# Get all sections for a channel
sections <- get_channel_sections(channel_id = "UCuAXFkgsw1L7xaCfnd5JJOw")
# Get specific section
section <- get_channel_sections(section_id = "UC_x5XG1OV2P6uZZ5FSM9Ttw.e-Fk7vMeOn4")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.