[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-21 Thread galeyte
Hi Matt, Thanks for answering me. It now works hope to you. There's plainty off things i put in signature etc etc just to debug ! Thanks, On 20 avr, 21:06, Matt Harris mhar...@twitter.com wrote: Hey, Looking at your example basestring it looks like you have your OAuth steps confused. In

[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-20 Thread galeyte
Is it possible to have any help ? here is the base string i'm generating : POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_tokenoauth_callback%3Dhttp%253A%252F%252Flocalhost %253A3005%252Fthe_dance%252Fprocess_callback%253Fservice_provider_id

Re: [twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-20 Thread Matt Harris
Hey, Looking at your example basestring it looks like you have your OAuth steps confused. In your example you are sending an oauth_token with your request to /oauth/request_token when you shouldn't be. You can read more on the OAuth flow on our developer site:

[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-19 Thread galeyte
Hi, Thanks for answering my question. I've tried a lot of things to reach oauth/request_token, and i've tried : request_maker.open(POST, https://api.twitter.com/oauth/ request_token) but nothing has changed ! here is my new code : function signForm() { accessor = { consumerSecret:

[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-19 Thread galeyte
Ok so i've stopped using OAuth javascript library Here is my new code : function getSignature() { var nonce = OAuth.nonce(31); var time = OAuth.timestamp(); var parameters = [encodeURIComponent(oauth_token=+oauth_token), encodeURIComponent(oauth_consumer_key=+consumer_key),

[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-19 Thread galeyte
And i stop using OAuth javascript library, and i'm getting the same basestring and signature as oauth library examples Here is the authorization header i send : OAuth realm='', oauth_nonce=1W3hagbtydTy8GBfkqxS3imJUDUfINi, oauth_timestamp=1303220837, oauth_consumer_key=[CONSUMER_KEY],

[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-19 Thread galeyte
Hi again, So i've deleted my previous code, and started again to respect twitter's doc and oauth thing i've seen before. Here is my new code, header-based, calling the good endpoint url : function getSignature() { var nonce = OAuth.nonce(31); var time = OAuth.timestamp(); var

[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-18 Thread galeyte
So i've checked my signature with http://oauth.googlecode.com/svn/code/javascript/example/signature.html and it appears that my basestring and signature are now ok. But i still can't find where is my error when sending my data. I've tried to send it in authorization header field, and in body, but

Re: [twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-18 Thread Matt Harris
Hi, Looking at your code this line: request_maker.open(POST, https://api.twitter.com/oauth;); makes it look like you are making a request to: https://api.twitter.com/oauth Double check you are sending the user to the correct endpoint. At this point of your flow I think you mean to make a

[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-15 Thread galeyte
I don't have a 401 anymore but i recieve a you are being redirected page, so i can't get my request_token here is my code : function getSignature() { var accessor = { consumerSecret: consumer_secret, tokenSecret: oauth_token_secret }; var message = { method: POST,