R TwitteR 包授权错误 [英] R TwitteR package authorization error
本文介绍了R TwitteR 包授权错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在关注 twitteR 主页的最新更新,但无法通过授权流程.
I am following the latest update on twitteR homepage, and I can't pass the authorization process.
library(devtools)
install_github("twitteR", username="geoffjentry")
library(twitteR)
api_key <- "XXXXXXXXXXXXXXXXX"
api_secret <- "XXXXXXXXXXXXXXXXX"
access_token <- "XXXXXXXXXXXXXXXXX"
access_secret <- "XXXXXXXXXXXXXXXXX"
setup_twitter_oauth(api_key, api_secret, access_token, access_secret)
这是我返回的输出:
[1] "Using direct authentication"
Error in check_twitter_oauth() : OAuth authentication error:
This most likely means that you have incorrectly called setup_twitter_oauth()'
我也试过 setup_twitter_oauth(api_key, api_secret)
,这是错误信息:
I have also tried setup_twitter_oauth(api_key, api_secret)
, and this is the error message:
[1] "Using browser based authentication"
Error in init_oauth1.0(endpoint, app, permission = params$permission) :
client error: (401) Unauthorized
我认为 setup_twitter_oauth
中没有任何其他选项.有没有其他人遇到过这个错误?
I don't think there are any other options in setup_twitter_oauth
. Does anyone else encounter this error?
推荐答案
set callback url to http://127.0.0.1:1410在 Twitter 的应用设置中
set callback url to http://127.0.0.1:1410 in app settings in twitter
这篇关于R TwitteR 包授权错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文