我已经按照这里设置的步骤进行了操作:http://cran.r-project.org/web/packages/twitteR/vignettes/twitteR.pdf
我拥有的代码如下:
library(ROAuth)
cred <- OAuthFactory$new(consumerKey="xyz",
consumerSecret=xyz",
requestURL="https://api.twitter.com/oauth/request_token",
accessURL="https://api.twitter.com/oauth/authorize",
authURL="https://api.twitter.com/oauth/access_token")
cred$handshake(ssl.verifypeer = FALSE)当我获得推特链接时:https://api.twitter.com/oauth/access_token?oauth_token=YZZOYJ1liH1TDEY8G6Eb3YmgAWQlgGiEfAzI1ADwZ4
并加载到我的浏览器,它会带回一个空白页面,没有关于个人识别码的信息。谁能告诉我为什么这个链接是空白的
发布于 2013-03-10 15:07:31
因为您访问了错误的URL以进行授权。交换您的auth和access urls!
accessURL="https://api.twitter.com/oauth/access_token",
authURL="https://api.twitter.com/oauth/authorize")
#You should get...
Cred$handshake(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl") )
To enable the connection, please direct your web browser to:
http://api.twitter.com/oauth/authorize?oauth_token=someaccessstokenvalue
When complete, record the PIN given to you and provide it here:
#Final step to register connections
registerTwitterOAuth(Cred)https://stackoverflow.com/questions/15317370
复制相似问题