0

端末でこれを試すと: 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データを返すはずですが、なぜこれが起こっているのでしょうか?

4

1 に答える 1

0

ほとんどの API を使用するには、Twitter で「ログイン」する必要があります。

認証と認可を読んでください。

于 2013-08-26T05:21:52.033 に答える