ROAuth和Twitter的Mac OS X 10.7,R 2.15 [英] ROAuth and twitteR, Mac OS X 10.7, R 2.15

查看:205
本文介绍了ROAuth和Twitter的Mac OS X 10.7,R 2.15的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常困难的时期让我的OAuth的工作,这样我可以让时速350调用Twitter的API。

I'm having a very difficult time getting my OAuth to work so that I can make 350 calls per hour to twitter's API.

我查阅其他几个线程主题类似,但我的问题似乎是不同的:

I have reviewed several other threads with similar topics, but my problem appears to be different:

Twitter和ROAuth R程序包安装

Twitter和ROAuth

<一个href=\"http://stackoverflow.com/questions/9916283/twitter-roauth-and-windows-register-ok-but-certificate-verify-failed\">TwitteR, ROAuth和Windows:注册好了,但证书验证失败

我的code是如下:

    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)

尽管尝试许多不同版本的同一code的,重置API密钥,甚至注册一个新帐号,并retrieiving一个新的API密钥,我不断地返回此错误:

Despite trying many different versions of the same code, resetting my API key, and even registering a new account and retrieiving a new API key, i continually return this error:

    Error in Cred$handshake() : 
    Invalid response from site, please check your consumerKey and consumerSecret and try again.

有是绝对没有办法,这可能是与我的键/秘密的问题。任何其他的想法?

There is absolutely no way this could be an issue with my key/secret. Any other ideas?

推荐答案

问题就迎刃而解了:

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

I had already downloaded this new version of ROAuth (http://lists.hexdump.org/pipermail/twitter-users-hexdump.org/2012-February/000059.html) but had not restarted R! duh!

这篇关于ROAuth和Twitter的Mac OS X 10.7,R 2.15的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆