Hi Taylor,
Finally some reason to smile. I got it working! Earlier i tried with
the time stamp as seconds..but that too didnt work.
The issue was to do with Body of the request. I was url encoding the
entire string.
x_auth_mode%3Dclient_auth%26x_auth_password%3DPASSWORD
%26x_auth_username%3DUSERNAME
But it looks like only the PASSWORD and USERNAME fields are to be url
encoded..hmm.. It took me 2 days to figure it out..
Thanks for your support.
Cheers,
Priju
On Jun 18, 11:18 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
Hi Priju,
Assuming that you also have xAuth access enabled in your application, I
think the issue might be around your timestamp -- it appears to be in
milliseconds and not seconds -- the oauth_timestamp field should be in
seconds. Hope that solves your problem!
Thanks,
Taylor
On Fri, Jun 18, 2010 at 11:00 AM, priju paul prijujacobp...@gmail.comwrote:
Hi All,
Im Tired!!! Was working on this right from mrning to get the
authentication
working using xAuth. I always get *401 error*.
Here is what im doing.
Request URL:https://api.twitter.com/oauth/access_token
Signature Base String:
POSThttps%3A%2F%2Fapi.twitter.com
%2Foauth%2Faccess_tokenoauth_consumer_key%3DD31A2bkKGtA8jAvuc15g
%26oauth_nonce%3DMToxOj555%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1276894058513750%26oauth_version
%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3DPASSWORD
%26x_auth_username%3DUSERNAME
HTTP POST Body:
x_auth_mode%3Dclient_auth%26x_auth_password%3DPASSWORD
%26x_auth_username%3DUSERNAME
HEADER:
OAuth oauth_nonce=MToxOj555, oauth_signature_method=HMAC-SHA1,
oauth_timestamp=1276894058513750,
oauth_consumer_key=D31A2bkKGtA8jAvuc15g,
oauth_signature=1WKKwjlPzcaw7n9m+B4Gwtja5IE%3D, oauth_version=1.0
ContentType: application/x-www-form-urlencoded
Host: api.twitter.com
Accept:application/json
Really not sure whats going wrong. Im trying from my Symbian emulator.
Could
you please help me out.
Let me know if you are looking for more informations.
Cheers,
Priju