youOAuth: youOAuth

Description Usage Arguments Details Value Author(s) Examples

View source: R/you_oauth.R

Description

OAuth 2.0 authentication

Usage

1
youOAuth(client.id, client.secret, scope = NULL)

Arguments

client.id

Your client.id. See details below.

client.secret

Your client.secret. See details below.

scope

Scope of token, defaults to NULL. See details below.

Details

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:

See all scopes from documentation here

Value

Returns object of class token2.0 from the httr package.

Author(s)

John Coene [email protected]

Examples

1
2
3
4
5
## Not run: 
token <- youOauth(client.id = "something.apps.googleusercontent.com",
                  client.secret = "XxxXX1XxXxXxxx1xxx1xxXXX")

## End(Not run)

JohnCoene/youTubeDataR documentation built on May 4, 2018, 8:05 a.m.