httr (version 0.1.1)

oauth_app: Create an OAuth application.

Description

The OAuth framework doesn't match perfectly to use from R. Each user of the package for a particular OAuth enabled site must create their own application. See the demos for instructions on how to do this for linkedin, twitter, vimeo, facebook, github and google.

Usage

oauth_app(appname, key, secret = NULL)

Arguments

appname
name of the application. This is not used for OAuth, but is used to make it easier to identifier different applications and provide a consistent ways of storing secrets in environmental variables.
key
consumer key (equivalent to a user name)
secret
consumer secret. This is equivalent to a password and should not be stored in publicly visible code. As a convenient shortcut, if secret is NULL, we'll look in the environment variable APPNAME_CONSUMER_SECRET

See Also

Other OAuth: oauth1.0_token, oauth2.0_token, oauth_endpoint, sign_ouath1.0, sign_ouath2.0

Examples

Run this code
linkedin_app <- oauth_app("linkedin", key = "outmkw3859gy")
github_app <- oauth_app("github", "56b637a5baffac62cad9")

Run the code above in your browser using DataLab