Authenticate.youtube: Youtube API authentication

Description Usage Arguments Value Examples

View source: R/Authenticate.youtube.R

Description

Youtube authentication uses OAuth2 and requires a Google Developer API key as described here: https://developers.google.com/youtube/v3/docs/.

Usage

1
2
## S3 method for class 'youtube'
Authenticate(socialmedia, apiKey, ...)

Arguments

socialmedia

Character string. Identifier for social media API to authenticate, set to "youtube".

apiKey

Character string. Google developer API key to authenticate.

...

Additional parameters passed to function. Not used in this method.

Value

A credential object containing an api key $auth and social media type descriptor $socialmedia set to "youtube". Object has the class names "credential" and "youtube".

Examples

1
2
3
4
5
6
7
## Not run: 
# youtube authentication with google developer api key
myAPIKey <- "xxxxxxxxxxxx"

youtubeAuth <- Authenticate("youtube", apiKey = myAPIKey)

## End(Not run)

vosonSML documentation built on July 18, 2019, 9:05 a.m.