[twitter-dev] Re: PHP OAuth app stopped working magically

2011-01-04 Thread Nicolás López Zerpa
Thanks you, It worked! :D

On Jan 3, 11:48 pm, @epc epcoste...@gmail.com wrote:
 On Jan 3, 8:29 am, Nicolás López Zerpa nico89...@gmail.com wrote:

  Authorization: OAuth
  oauth_version=1.0,oauth_consumer_key=ir4GfsoPEjUNHWD1fpevgA,oauth_times 
  tamp=1294056882,oauth_nonce=9e61a75246ee4c0195f4c75c4ad53943,oauth_sign 
  ature_method=HMAC-
  SHA1,oauth_signature=r8Fq9Lr9FUAgBtzgndIF6oXJwsE%3D

 Check to make sure your clock is accurate, the timestamp in that auth
 line is over an hour earlier than your post (which I realize could be
 just when you copied it, but on the chance that you tried to authorize
 just before posting, verify that your clock is accurate).
 --
 -ed costello

-- 
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-dev] Re: PHP OAuth app stopped working magically

2011-01-03 Thread Nicolás López Zerpa
Hello, Sorry for being late.

Here is the signature base string:
GEThttps%3A%2F%2Fapi.twitter.com%2Foauth
%2Frequest_tokenoauth_consumer_key%3Dir4GfsoPEjUNHWD1fpevgA
%26oauth_nonce
%3D9e61a75246ee4c0195f4c75c4ad53943%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1294056882%26oauth_version%3D1.0

And this is the Authorization HTTP Header with the signature:
Authorization: OAuth
oauth_version=1.0,oauth_consumer_key=ir4GfsoPEjUNHWD1fpevgA,oauth_timestamp=1294056882,oauth_nonce=9e61a75246ee4c0195f4c75c4ad53943,oauth_signature_method=HMAC-
SHA1,oauth_signature=r8Fq9Lr9FUAgBtzgndIF6oXJwsE%3D


I've tried 
http://oauth.googlecode.com/svn/code/javascript/example/signature.html
and it returned the same signature. I've also tried tmhOAuth library,
but it didn't work.

Happy new year! :)


On Dec 17 2010, 4:12 pm, Matt Harris thematthar...@twitter.com
wrote:
 Hi Nicolás,

 If you can share your basestring and signature we can take a look at what's
 going wrong. Alternatively consider using a pre-written PHP library which
 handles this for you. There are some PHP libraries listed on our developer
 resources site which are popular with developers:
    http://dev.twitter.com/pages/oauth_libraries#php

 Best
 @themattharris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

 2010/12/17 Nicolás López Zerpa nico89...@gmail.com







  Hello everyone.
  About a month ago, I've added to our news website the feature to login
  using Twitter. It uses OAuth to get the Twitter user data.

  However, since a few days ago, it doesn't work anymore. Nobody changed
  that feature recently; when I want to sign in, I get an 401 error:
  Failed to validate oauth signature and token. The script fails when
  it makes a request tohttps://api.twitter.com/oauth/request_token

  I've also made some little test with PHP OAuth classes I've found on
  the Internet and I couldn't either make my app work.

  Please, let me know if you need more info, or if Twitter changed
  something and I have to modify my app.

  Thanks in advance :)

  --
  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


[twitter-dev] Re: PHP OAuth app stopped working magically

2011-01-03 Thread @epc
On Jan 3, 8:29 am, Nicolás López Zerpa nico89...@gmail.com wrote:
 Authorization: OAuth
 oauth_version=1.0,oauth_consumer_key=ir4GfsoPEjUNHWD1fpevgA,oauth_times 
 tamp=1294056882,oauth_nonce=9e61a75246ee4c0195f4c75c4ad53943,oauth_sign 
 ature_method=HMAC-
 SHA1,oauth_signature=r8Fq9Lr9FUAgBtzgndIF6oXJwsE%3D

Check to make sure your clock is accurate, the timestamp in that auth
line is over an hour earlier than your post (which I realize could be
just when you copied it, but on the chance that you tried to authorize
just before posting, verify that your clock is accurate).
--
-ed costello

-- 
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-dev] Re: PHP OAuth app stopped working magically

2010-12-17 Thread Tom Buck
Hiya,

I had a similar problem about the same time; it turned out that I had
somehow been ignoring the oauth_verifier parameter that Twitter
provides. I plugged it back in and hey presto, problem fixed!

...and then the next day I discovered that I wasn't checking to see if
oauth_verifier was always passed - sometimes it isn't - so hopefully
I've saved you one gotcha there ;-)

Cheers,
Tom.



On Dec 17, 7:34 pm, Nicolás López Zerpa nico89...@gmail.com wrote:
 Hello everyone.
 About a month ago, I've added to our news website the feature to login
 using Twitter. It uses OAuth to get the Twitter user data.

 However, since a few days ago, it doesn't work anymore. Nobody changed
 that feature recently; when I want to sign in, I get an 401 error:
 Failed to validate oauth signature and token. The script fails when
 it makes a request tohttps://api.twitter.com/oauth/request_token

 I've also made some little test with PHP OAuth classes I've found on
 the Internet and I couldn't either make my app work.

 Please, let me know if you need more info, or if Twitter changed
 something and I have to modify my app.

 Thanks in advance :)

-- 
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