我正在关注最新更新推特主页 https://github.com/geoffjentry/twitteR,我无法通过授权流程。
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)
,这是错误消息:
[1] "Using browser based authentication"
Error in init_oauth1.0(endpoint, app, permission = params$permission) :
client error: (401) Unauthorized
我认为没有其他选择setup_twitter_oauth https://github.com/geoffjentry/twitteR/blob/master/man/setup_twitter_oauth.Rd。还有其他人遇到这个错误吗?