getChannelSections: getChannelSections

Description Usage Arguments Details Author(s) Examples

Description

Returns a list of channelSection resources that match the API request criteria.

Usage

1
2
getChannelSections(token, channel.id, part = "snippet", mine = FALSE, id,
  hl = NULL, on.behalf.of.content.owner = NULL, verbose = FALSE)

Arguments

token

Your token as returned by youOAuth.

channel.id

Indicates that the API response should only contain resources created by the channel. The default value is NULL.

part

The part parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. The default value is snippet, can take any of contentDetails, id or snippet. See findParts.

mine

Set this parameter's value to true to retrieve a feed of the authenticated user's activities. The default value is FALSE.

id

Specifies a comma-separated list of IDs that uniquely identify the channelSection resources that are being retrieved. In a getChannelSections resource, the id property specifies the section's ID.

hl

The hl parameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports. The parameter value must be a language code included in the list returned by getLanguages

on.behalf.of.content.owner

Indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. See scope under youOAuth. The default value is NULL.

verbose

If TRUE prints infromational messages in the console. The default value is FALSE.

Details

Must specify one (and only one) of mine (TRUE), id or channel.id.

Author(s)

John Coene jcoenep@hotmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
#Authenticate
token <- youOAuth(client.id = "something.apps.googleusercontent.com",
                  client.secret = "XxxXX1XxXxXxxx1xxx1xxXXX")

# search channels on cats
search <- searchTube(token, query = "cats", type = "channel")

# get channel sections
sections <- getChannelSections(token, channel.id = search$channelId [1])

## End(Not run)

JohnCoene/youTubeDataR documentation built on May 7, 2019, 11:59 a.m.