Description Usage Arguments Details Examples
Authenticate
1 | ytr_oauth(client.id, client.secret, scope = "yt-analytics.readonly")
|
client.id |
Your |
client.secret |
Your |
scope |
Scope of token. See details below. |
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:
yt-analytics-monetary.readonly
yt-analytics.readonly
See official documentation for more information on the scopes.
1 2 3 4 5 | ## Not run:
token <- ytr_oauth("something.apps.googleusercontent.com",
"xxXx0X0x0X0xXX0")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.