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

auth_youtube_apikey(api_key, verbose = FALSE, ...)

Arguments

api_key

Character string. Google developer API key to authenticate.

verbose

Logical. Output additional information. Default is FALSE.

...

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

if (FALSE) {
# youtube authentication with google developer api key
auth <- auth_youtube_apikey("xxxxxxxxxxxx")
}