2016-11-01 22 views
0

我试图使用StreamR来获取源自特定位置的推文流。在我这样做之前,我需要使用ROAuth进行握手。这是我做的:尝试使用ROAuth连接到Twitter Streaming API,得到“错误:禁止”

reqURL <- "https://api.twitter.com/oauth/request_token" 
accessURL <- "http://api.twitter.com/oauth/access_token" 
authURL <- "http://api.twitter.com/oauth/authorize" 
consumerKey <- "FCVbysnkgqLGAwlkgVTuQA9BJ" 
consumerSecret <- "x5wA44qtm5Fj5OD1V1O9qYsWfdgLzQxRfpxqVIpzdEZE7FPJGe" 
my_oauth <- OAuthFactory$new(consumerKey=consumerKey, 
          consumerSecret=consumerSecret, 
          requestURL=reqURL, 
          accessURL=accessURL, 
          authURL=authURL) 

my_oauth$handshake() 

my_oauth$handshake()执行我复制PIN,我得到Error: Forbidden。为什么?

回答

0

我改变了http s到https es,它工作。

相关问题