TwitterOAuth注册

时间:2014-08-16 13:40:42

标签: r twitter oauth

我正在尝试使用twitteR包:

library(twitteR)
library(ROAuth)
library(RCurl)

 download.file(url="http://curl.haxx.se/ca/cacert.pem",
 destfile="cacert.pem")

reqURL   <- "https://api.twitter.com/oauth/request_token"
   accessURL<- "https://api.twitter.com/oauth/access_token"
   authURL  <- "https://api.twitter.com/oauth/authorize"

  consumerKey <- "xxxxxxxx"
 consumerSecret <- "xxxxxxxx"

    twitCred <- OAuthFactory$new(consumerKey=consumerKey,
                                consumerSecret=consumerSecret,
                                requestURL=reqURL,
                                accessURL=accessURL,
                                authURL=authURL)


   twitCred$handshake(cainfo="cacert.pem")

然后我记录提供的PIN码,但不久之后,当我尝试时:

 registerTwitterOAuth(twitCred) 

它返回:

&#34; Errore in registerTwitterOAuth(twitCred):   ROAuth不再用于支持httr,请参阅?setup_twitter_oauth&#34;

我尝试使用&#34; setup_twitter_oauth&#34;但它在参考握手时没有返回相同的结果 它不允许注册。

0 个答案:

没有答案