【发布时间】:2013-09-30 18:15:17
【问题描述】:
我正在尝试从 Twitter 用户那里获取最新的推文。这是我到目前为止所得到的:
$string = file_get_contents("https://api.twitter.com/1/statuses/show.json?id=Cristiano&include_entities=true");
$json_=json_decode($string,true);
这是我的错误信息:
{"errors":[{"message":"Bad Authentication data","code":215}]}
有什么问题?
【问题讨论】:
-
当我点击上面的链接时,我得到
{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]} -
您正在使用 api1。他们升级了。