I am using a script to try and access the user timeline script. The
script works. The server the script was originally running on, was
reinstalled and now, after reconfiguring pecl oauth, it gives the
error:

PHP Fatal error:  Uncaught exception 'OAuthException' with message
'Invalid auth/bad request (got a 400, expected HTTP/1.1 20X or a
redirect)' in <path>GetTweets.php:29
Stack trace:
#0 <path>GetTweets.php(29): OAuth->fetch('http://api.twit...')
#1 {main}
  thrown in <path>GetTweets.php on line 29

I know the script works. I have regenerated the consumer tokens and
access tokens many times. The public key of the server changed due to
the re-install (but the IP remains the same). Using PHP 5.2.17. Any
help as to what may cause this will be appreciated.

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk

Reply via email to