Re: [twitter-dev] 401 Not Authorized in API OAuth PHP authorization
just a question: for request, the time need to be GMT 0? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 401 Not Authorized in API OAuth PHP authorization
I'm doing another try.. and this time I trying with Wootterhttp://woorales.com/wootter/ that is a twitter opensource clienthttp://sourceforge.net/projects/wootter/files/ . Then I've downloaded and just change the keys in config.php. In Demo serverhttp://woorales.com/wootter/is right working... but in my server http://maathe.us/wootter/, not. I just don't know why can't get authenticate url through request that is responding with 401 header. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 401 Not Authorized in API OAuth PHP authorization
Hi, The error message Failed to validate oauth signature and token does mean either the signature you are sending, or the consumer token is invalid. Could you share the request you are making, and response you are getting. Remember to obscure any user or consumer secrets. Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Fri, Mar 18, 2011 at 11:49 AM, @matheuseduardo matheuseduardo.com@ gmail.com wrote: seems to be ok the function that generate the is just: function generate_timestamp() { return time(); } and in header I have the parameter: [oauth_timestamp] = 1300471769 the error received from request in twitter api is: Failed to validate oauth signature and token and header 401 Must be signature? I just think it's weird because it's happening in all library and examples ready for tests.. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 401 Not Authorized in API OAuth PHP authorization
Checked your tokens are correct? On 18 Mar 2011, at 12:01, @matheuseduardo wrote: I have tested the api twitter with at least four solutions (one of them everworked before, months ago) in PHP, and getting the same error: 401 Not Authorized. Is there any novelty, any prior authorization to be given to theapplication? There are others with the same problem? Someone trying anything new in PHP and working well? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 401 Not Authorized in API OAuth PHP authorization
Yep! And try to reset keys, delete application, create other, create other in other user... and nothing worked as well! I've downloaded some ready for test examples from github, from posts.. nothing. Even the popular @abraham's Twitter OAuth library for PHPhttps://github.com/abraham/twitteroauth (which was just change the two keys and worked in past) did not work here! and have the same error 401 Not Authorized in header (instead 200 Ok). There is someone trying something new in PHP with Oauth, that can send me the sample files so I just enter my keys and test? Rgds *(sorry for bad english, with the help of google translator)* -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 401 Not Authorized in API OAuth PHP authorization
Check the time is accurate on the machine you're running the code on. On 18 Mar 2011, at 18:28, @matheuseduardo wrote: Anyone using PHP having this same problem? Anyone with sample working code to send me? Even using https://github.com/abraham/twitteroauth ? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 401 Not Authorized in API OAuth PHP authorization
seems to be ok the function that generate the is just: function generate_timestamp() { return time(); } and in header I have the parameter: [oauth_timestamp] = 1300471769 the error received from request in twitter api is: Failed to validate oauth signature and token and header 401 Must be signature? I just think it's weird because it's happening in all library and examples ready for tests.. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk