我很难让我的OAuth工作,所以每小时可以拨打350个电话给Twitter的API。
我已经回顾了其他几个主题相似的主题,但我的问题似乎有所不同:
twitteR and ROAuth R Packages install
TwitteR, ROAuth and Windows: register OK, but certificate verify failed
我的代码如下:
rm(list=ls())
library("twitteR")
library("ROAuth")
requestURL <- "https://api.twitter.com/oauth/request_token"
accessURL = "https://api.twitter.com/oauth/access_token"
authURL = "https://api.twitter.com/oauth/authorize"
cKey = "__________"
cSecret = "__________"
Cred <- OAuthFactory$new(consumerKey=cKey,
consumerSecret=cSecret,
requestURL=requestURL,
accessURL=accessURL,
authURL=authURL)
Cred$handshake()
registerTwitterOAuth(Cred)
尽管尝试了相同代码的许多不同版本,重置我的API密钥,甚至注册新帐户并检索新的API密钥,我仍然不断返回此错误:
Error in Cred$handshake() :
Invalid response from site, please check your consumerKey and consumerSecret and try again.
这绝对不可能是我的密钥/秘密的问题。还有其他想法吗?
答案 0 :(得分:0)
解决问题:
我已经下载了这个新版本的ROAuth(http://lists.hexdump.org/pipermail/twitter-users-hexdump.org/2012-February/000059.html),但还没有重新启动R!杜!