【问题标题】:Twitter Streaming API not workingTwitter 流 API 不工作
【发布时间】:2013-08-19 00:46:30
【问题描述】:

当我在终端上尝试这个时: curl https://stream.twitter.com/1.1/statuses/filter.json?delimited=length&track=twitterapi:

它返回这个 html 文档:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Error 401 Unauthorized</title>
</head>
<body>
<h2>HTTP ERROR: 401</h2>
<p>Problem accessing '/1.1/statuses/filter.json?delimited=length'. Reason:
<pre>    Unauthorized</pre>

</body>
</html>

它应该返回大量的 json 数据,你知道为什么会这样吗?

【问题讨论】:

    标签: twitter-streaming-api


    【解决方案1】:

    您必须先使用 twitter“登录”才能使用大多数 API。

    阅读Authentication & Authorization

    【讨论】:

      猜你喜欢
      • 2013-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-12
      • 2014-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多