getGuideCategories: getGuideCategories

Description Usage Arguments Details Author(s) Examples

Description

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

Usage

1
getGuideCategories(token, id, region.code, hl = NULL)

Arguments

token

Your token as returned by youOAuth.

id

Specifies a comma-separated list of the YouTube channel category ID(s) for the resource(s) that are being retrieved. In a guide.category resource, the id property specifies the YouTube channel category ID.

region.code

Instructs the API to return the list of guide categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.

hl

Specifies the language that will be used for text values in the API response. The default value (from YouTube) is en-US. See getLanguages

Details

Must specify one (and only one) filter id or region.code

Author(s)

John Coene jcoenep@hotmail.com

Examples

1
2
3
4
5
6
7
8
## Not run: 
token <- youOAuth(client.id = "something.apps.googleusercontent.com",
                  client.secret = "XxxXX1XxXxXxxx1xxx1xxXXX")

# fetch categories from Belgium
dull.cat <- getCategories(token, region.code = "BE")

## End(Not run)

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