且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Twitter的包的R认证:错误401

更新时间:2021-10-24 05:49:29

不知道你的错误的precise来源,我有大约2个月前使用该软件包。我跑进做握手以及错误。

Not sure the precise source of your error, and I had used this package about 2 months ago. I ran into errors doing the handshake as well.

要与工作的时候,我避开了明确的握手使用 setup_twitter_oauth 直接

To work-around, I avoided the explicit handshake by using setup_twitter_oauth directly.

consumerKey <- "[your Twitter consumer key]"
consumerSecret <- "[your Twitter consumer secret]"
accessToken <- "[your Twitter access token]"
accessTokenSecret <- "[your Twitter access token secret]"

setup_twitter_oauth(consumerKey, consumerSecret, accessToken, accessTokenSecret)

这似乎为我工作。不同的OAuth参数来自Twitter的。我写了如何做到这一点的位置:新生儿应用程序使用Twitter和R

This seemed to work for me. The various OAuth parameters come from Twitter. I wrote up how to do that here: Newborn app using Twitter and R.

在完整的R源$ C ​​$ C是到位桶(底部的东西可能是最相关的):新生儿-app.R 。

The complete R source code is on BitBucket (the stuff at the bottom is probably most relevant): newborn-app.R.