youOAuth: youOAuth

Description Usage Arguments Details Value Author(s) Examples

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 jcoenep@hotmail.com

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 7, 2019, 11:59 a.m.