Description Usage Arguments Details Author(s) See Also Examples
Returns a list of caption tracks that are associated with a specified video.
1 2  | getCaptions(token, video.id, part = "snippet", id = NULL,
  on.behalf.of.content.owner = NULL)
 | 
token | 
 Your token as returned by   | 
video.id | 
 specifies the YouTube video ID of the video for which the API should return caption tracks. Required.  | 
part | 
 specifies the caption resource parts that the API response will include. 
The default vlaue is   | 
id | 
 The id parameter specifies a comma-separated list of IDs that identify the 
caption resources that should be retrieved. Each ID must identify a caption 
track associated with the specified video. The default value is   | 
on.behalf.of.content.owner | 
 The   | 
See scope in youOAuth. Required authorisation: 
force-ssl
partner-channel-audit
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 videos about cats
search <- searchTube(token, query = "cats", type = "video")
# random channel id
set.seed(19880525)
vid <- sample(search$videoId, 1)
# fetch data
act <- getActivities(token, video.id = vid)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.