I'm trying to authenticate with Twitter using R, but I can't get a PIN.
The code I have is as follows:
download.file(url="http://curl.haxx.se/ca/cacert.pem", destfile="cacert.pem")
reqURL <- "http://api.twitter.com/oauth/request_token"
accessURL <- "http://api.twitter.com/oauth/access_token"
authURL <- "http://api.twitter.com/oauth/authorize"
consumerKey <- "foo"
consumerSecret <- "bar"
twitCred <- OAuthFactory$new(consumerKey=consumerKey,
consumerSecret=consumerSecret,
requestURL=reqURL,
accessURL=accessURL,
authURL=authURL
)
twitCred$handshake(cainfo="cacert.pem", ssl.verifypeer=FALSE)
However, when I get the authorisation URL back and type that in, I still don't get a PIN : I just have a button to authorise the app, and then I end up back at the return URL I've previously specified.
This seems a very similar situation to this question Where does twitteR PIN code appear during R oauth authentication? but the remedy there (to ensure the request, access and auth URLs are all http rather than https) doesn't work for me.
I'm running R 3.0.0 on Windows 7, ROAuth is 0.9.2, twitteR 1.1.0 - any of those indicate why this problem is occurring?