【问题标题】:ROAuth and twitteR, Mac OS X 10.7, R 2.15ROAuth 和推特,Mac OS X 10.7,R 2.15
【发布时间】:2012-07-19 03:28:00
【问题描述】:

我很难让我的 OAuth 正常工作,这样我每小时可以对 twitter 的 API 进行 350 次调用。

我查看了其他几个主题相似的主题,但我的问题似乎有所不同:

twitteR and ROAuth R Packages install

twitteR and ROAuth

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.

这绝对不可能是我的密钥/秘密的问题。还有其他想法吗?

【问题讨论】:

    标签: r api twitter oauth


    【解决方案1】:

    问题已解决:

    我已经下载了这个新版本的 ROAuth (http://lists.hexdump.org/pipermail/twitter-users-hexdump.org/2012-February/000059.html) 但还没有重新启动 R!呵呵!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多