views:

531

answers:

2

Hi Guys, I need some help, 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 away in PHP i can out put this?

Thanks

+1  A: 
$myarray = json_decode($error_string, true);
$code = $myarray['errors'][0]['code'];
djn
+3  A: 

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

Noodles