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
。为什么?