getVideoCategories: getVideoCategories

Description Usage Arguments Details Author(s) Examples

Description

Returns a list of categories that can be associated with YouTube videos.

Usage

1
getVideoCategories(token, id, region.code, hl = "en_US")

Arguments

token

Your token as returned by youOAuth.

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 en_US.

Details

Must specify either id or region.code

Author(s)

John Coene jcoenep@hotmail.com

Examples

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)

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