ytr_oauth: Authenticate

Description Usage Arguments Details Examples

Description

Authenticate

Usage

1
ytr_oauth(client.id, client.secret, scope = "yt-analytics.readonly")

Arguments

client.id

Your client.id. See details below.

client.secret

Your client.secret. See details below.

scope

Scope of token. See details below.

Details

To get your client.id and client.secret please follow the instructions here Also set the redirect Authorized redirect URIs to your httr::oauth_callback() URL, generally your localhost.

Valid scopes:

See official documentation for more information on the scopes.

Examples

1
2
3
4
5
## Not run: 
token <- ytr_oauth("something.apps.googleusercontent.com",
  "xxXx0X0x0X0xXX0")

## End(Not run)

JohnCoene/ytr documentation built on June 30, 2019, 12:33 a.m.