我试图使用StreamR来获取来自特定位置的tweet流。在此之前,我需要使用ROAuth进行握手。以下是我所做的:
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。为什么?
发布于 2016-11-01 15:30:30
我把http改成了httpses,它起了作用。
https://stackoverflow.com/questions/40362950
复制相似问题