Create an OAuth application.
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.
oauth_app(appname, key, secret = NULL)
- name of the application. This is not used for OAuth, but is used to make it easier to identify different applications and provide a consistent way of storing secrets in environment variables.
- consumer key (equivalent to a user name)
- consumer secret. This is equivalent to a password and
should not be stored in publicly visible code. As a convenient shortcut,
secretis missing, we'll look in the environment variable
# These work on my computer because I have the right envvars set up linkedin_app <- oauth_app("linkedin", key = "outmkw3859gy") github_app <- oauth_app("github", "56b637a5baffac62cad9") # If you're relying on caching, supply an explicit NULL to # suppress the warning message oauth_app("my_app", "mykey") oauth_app("my_app", "mykey", NULL)