【发布时间】:2012-07-19 03:28:00
【问题描述】:
我很难让我的 OAuth 正常工作,这样我每小时可以对 twitter 的 API 进行 350 次调用。
我查看了其他几个主题相似的主题,但我的问题似乎有所不同:
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.
这绝对不可能是我的密钥/秘密的问题。还有其他想法吗?
【问题讨论】: