【问题标题】:Trying to connect to Twitter Streaming API using ROAuth, getting "Error: Forbidden"尝试使用 ROAuth 连接到 Twitter Streaming API,得到“错误:禁止”
【发布时间】:2016-11-01 23:30:30
【问题描述】:

我正在尝试使用 StreamR 来获取来自特定位置的推文流。在我这样做之前,我需要使用 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。为什么?

【问题讨论】:

    标签: twitter-oauth roauth


    【解决方案1】:

    我将https 更改为httpses 并且成功了。

    【讨论】:

      猜你喜欢
      • 2020-05-04
      • 2011-11-07
      • 2016-01-22
      • 1970-01-01
      • 2018-08-11
      • 1970-01-01
      • 1970-01-01
      • 2013-04-05
      • 1970-01-01
      相关资源
      最近更新 更多