开发者

Twitter Error - {"errors":[{"code":53,"message":"Basic authentication is not supported"}]}

开发者 https://www.devze.com 2023-01-18 20:52 出处:网络
I have noticed when a user has ran out of API request I am seeing: {\"errors\":[{\"code\":53,\"message\":\"Basic authentication is not supported\"}]}开发者_如何学Go

I have noticed when a user has ran out of API request I am seeing:

{"errors":[{"code":53,"message":"Basic authentication is not supported"}]}开发者_如何学Go

Is there a way in PHP I can output this?


I think you'll find that twitter has turned off basic authentication. You will have to use OAuth from now on.

http://dev.twitter.com/pages/oauth_faq


$myarray = json_decode($error_string, true);
$code = $myarray['errors'][0]['code'];
0

精彩评论

暂无评论...
验证码 换一张
取 消