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
。爲什麼?