2013-08-19 88 views
0

当我尝试这对终端: curl https://stream.twitter.com/1.1/statuses/filter.json?delimited=length&track=twitterapi:Twitter的流API无法正常工作

它返回的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数据的,为什么发生这种情况有什么想法?

回答