Description Usage Arguments Details Author(s) See Also Examples
Returns a list of caption tracks matching a specific critera.
1 2 3 4 |
token |
Your token as returned by |
channel.id |
Indicates that the API response should only contain resources created by the channel. |
mine |
Set this parameter's value to true to retrieve a feed of the authenticated
user's activities. The default value is |
home |
Set this parameter's value to true to retrieve the activity feed that
displays on the YouTube home page for the currently authenticated user.
The default value is |
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 |
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 |
published.before |
Indicates that the API response should only contain resources created
before the specified time. Can be either of class |
published.after |
Indicates that the API response should only contain resources created after
the specified time. Can be either of class |
region.code |
Instructs the API to return search results for the specified country. The
parameter value is an
ISO 3166-1 alpha-2
country code. The default value is |
verbose |
If |
MUST specify one of channel.id
OR mine
OR
home
.
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 id
set.seed(19880525)
chan <- sample(search$channelId, 1)
# fetch data
act <- getActivities(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.