我在 AWS“Ubuntu Server 12.04.2 LTS”上运行 R Studio 并通过浏览器访问 R Studio。
当我尝试使用该包在 Twitter API 上进行身份验证时ROAuth
与代码:
credential<-OAuthFactory$new(consumerKey="xxxxx",
consumerSecret="xxxxx",
requestURL="https://api.twitter.com/oauth/request_token",
accessURL="https://api.twitter.com/oauth/access_token",
authURL="https://api.twitter.com/oauth/authorize")
credential$handshake()
registerTwitterOAuth(credential)
之后我收到错误registerTwitterOAuth(credential)
saying
Error in registerTwitterOAuth(credential) :
ROAuth is no longer used in favor of httr, please see ?setup_twitter_oauth
但是我找不到任何进一步的解释..
显然,在我发布此内容之前,twitteR 包已更改,因此新的身份验证方法是
setup_twitter_oauth(CUSTOMER_KEY, CUSTOMER_SECRET, ACCESS_TOKEN, ACCESS_secret, credentials_file=NULL)
see https://github.com/geoffjentry/twitteR
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)