RussellHarrower
RussellHarrower

Reputation: 6820

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

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

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

Is there a way in PHP I can output this?

Upvotes: 1

Views: 6576

Answers (2)

Noodles
Noodles

Reputation: 928

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

Upvotes: 6

djn
djn

Reputation: 3948

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

Upvotes: 2

Related Questions