I am trying to access the API for information on http://github.com . I created in the application on github (in the developer application) for this URL and tried to access through R using the httr libraries. Below is the code
library(httr) oauth_endpoints("github") myapp <- oauth_app("github",key = "#####################",secret = "########################" )
(the key was replaced by the client identifier, and the secret was replaced by secred id)
github_token <- oauth2.0_token(oauth_endpoints("github"), myapp)
This led me to the following
Use local file to cache OAuth access credentials between R sessions? 1: Yes 2: No
I chose 2 (as I tried option 1 before), then the following are displayed
httpuv not installed, defaulting to out-of-band authentication Please point your browser to the following url: https://github.com/login/oauth/authorize?client_id=72939e1b6d499f4f1894&scope=&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code
Enter the authorization code Can someone tell me what the authorization code is?
source share