Description Usage Arguments Details Author(s) Examples
Returns a collection of playlists that match the API request parameters.
1 2 3 4 |
token |
Your token as returned by |
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 |
channel.id |
Indicates that the API should only return the specified channel's playlists. |
id |
Specifies a comma-separated list of the YouTube playlist ID(s) for the resource(s) that are being retrieved. |
mine |
This parameter can only be used in a properly authorized request.
Set this parameter's value to |
n |
Number of results to fecth. The default value is |
max.results |
Specifies the maximum number of results that should be returned
by each API call. Acceptable values are |
hl |
nstructs 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 the |
on.behalf.of.content.owner |
This parameter can only be used in a properly authorized request. Note: This
parameter is intended exclusively for YouTube content partners.
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 CMS account that the user authenticates with must be
linked to the specified YouTube content owner. The default value is
|
on.behalf.of.content.owner.channel |
This parameter can only be used in a properly authorized request.
Note: This parameter is intended exclusively for YouTube content partners.
Specifies the YouTube channel ID of the channel to which a video is being
added. This parameter is required when a request specifies a value for the
|
verbose |
If |
Must specify one (and only one) of channel.id
, id
or
mine
(TRUE
).
For more information on this API call please see the official documentation.
John Coene jcoenep@hotmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
# Authenticate
token <- youOAuth(client.id = "something.apps.googleusercontent.com",
client.secret = "XxxXX1XxXxXxxx1xxx1xxXXX")
# search channels about cats
search <- searchTube(token, query = "cats", type = "channel")
# pick random channel
set.seed(19880525)
chan <- sample(search$channelId, 1)
# fetch playlist
pl <- getPlaylists(token, channel.id = chan)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.