Description Usage Arguments Details Author(s) Examples
Returns a list of categories that can be associated with YouTube videos.
1 | getVideoCategories(token, id, region.code, hl = "en_US")
|
token |
Your token as returned by |
id |
Specifies a comma-separated list of video category IDs for the resources that you are retrieving. |
region.code |
Instructs the API to return the list of video categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. |
hl |
Specifies the language that should be used for text values in the API
response. The default value is |
Must specify either id
or region.code
John Coene jcoenep@hotmail.com
1 2 3 4 5 6 7 8 9 | ## Not run:
# Authenticate
token <- youOAuth(client.id = "something.apps.googleusercontent.com",
client.secret = "XxxXX1XxXxXxxx1xxx1xxXXX")
# get categories
video.cat <- getVideoCategories(token, region.code = "US")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.