Description Usage Arguments Details Value Author(s) Examples
OAuth 2.0 authentication
1 |
client.id |
Your |
client.secret |
Your |
scope |
Scope of token, defaults to |
To get your client.id and client.secret please follow the instructions here , you may also want to watch the video Also set the redirect Authorized redirect URIs to your localhost.
Scopes:
force-ssl
Manage your YouTube account. This scope requires
communication with the API server to happen over an SSL connection.
NULL
Manage your YouTube account. This scope is functionally
identical to the youtube.force-ssl scope listed above because the YouTube
API server is only available via an HTTPS endpoint. As a result, even
though this scope does not require an SSL connection, there is actually no
other way to make an API request.
readonly
View your YouTube account.
upload
Upload YouTube videos and manage your YouTube videos.
partner-channel-audit
Retrieve the
auditDetails part in a channel
resource.
See all scopes from documentation here
Returns object of class token2.0
from the httr
package.
John Coene jcoenep@hotmail.com
1 2 3 4 5 | ## Not run:
token <- youOauth(client.id = "something.apps.googleusercontent.com",
client.secret = "XxxXX1XxXxXxxx1xxx1xxXXX")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.