PHP Classes


Recommend this page to a friend!

      PHP OAuth Library API  >  All threads  >  twitter  >  (Un) Subscribe thread alerts  
Date:2012-10-30 12:41:43
Update:2012-10-31 11:29:52

  1. twitter   Reply   Report abuse  
Picture of nijel nijel - 2012-10-30 12:41:43
I have used this package to log in to twitter
and make requests successfully

e.g this will work
$success = $client->CallAPI(
'GET', array(), array('FailOnAccessError'=>true), $user);

but if I make a request that uses a user name or i.d I get an error
$success = $client->CallAPI(
'GET', array("screen_name" =>"twitterapi" ),array('FailOnAccessError'=>true), $user);

Error: it was not possible to access the API call: it was returned an unexpected response status 401 Response: {"errors":[{"message":"Could not authenticate you","code":32}]}

  2. Re: twitter   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-10-31 11:29:52 - In reply to message 1 from nijel
Yes, Twitter requires that the API call parameters go in the URI and those parameters were not being signed correctly.

The problem was fixed and I just uploaded the new version. Just let me know if you find any more problems.