Re: [twitter-dev] xAuth: Fetching Acess_Token.. 401 Error

2010-06-18 Thread Taylor Singletary
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 wrote:

> 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:
>
> POST&https%3A%2F%2Fapi.twitter.com
> %2Foauth%2Faccess_token&oauth_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
>


[twitter-dev] xAuth: Fetching Acess_Token.. 401 Error

2010-06-18 Thread priju paul
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:

POST&https%3A%2F%2Fapi.twitter.com
%2Foauth%2Faccess_token&oauth_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