Description Usage Arguments Value References Examples
The function looks for .httr-oauth
in the working directory. If it doesn't find it, it expects an application ID and a secret.
If you want to remove the existing .httr-oauth
, set remove_old_oauth to TRUE. By default, it is set to FALSE.
The function launches a browser to allow you to authorize the application
1 2 3 4 5 6 7 |
app_id |
client id; required; no default |
app_secret |
client secret; required; no default |
scope |
Character. |
token |
path to file containing the token. If a path is given, the function will first try to read from it.
Default is |
... |
Additional arguments passed to |
sets the google_token option and also saves .httr_oauth
in the working directory (find out the working directory via getwd()
)
https://developers.google.com/youtube/v3/docs/
https://developers.google.com/youtube/v3/guides/auth/client-side-web-apps for different scopes
1 2 3 4 5 | ## Not run:
yt_oauth("998136489867-5t3tq1g7hbovoj46dreqd6k5kd35ctjn.apps.googleusercontent.com",
"MbOSt6cQhhFkwETXKur-L9rN")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.