getApiToken: Get access token

Description Usage Arguments Value Examples

View source: R/getToken.R

Description

Authenticate and generate access token

Usage

1
getApiToken(key, secret)

Arguments

key

Access key

secret

Access secret

Value

token An access token

Examples

1
2
3
4
5
## Not run: 
# Credentials with "content owner" role, with access to all the needed YT channels
token <- getApiToken(key = getOption("ga.clientId"), secret = getOption("ga.clientSecret"))

## End(Not run)

EricGoldsmith/rYouTube documentation built on Dec. 17, 2021, 7:21 p.m.