oAuth problems with GET params - Incorrect Signature

You must Login before you can answer or comment on any questions.

Hello,

I need help.

After autentication using oAuth Adapter (http://developer.appcelerator.com/blog/2010/07/twitter-oauth-implementation-for-titanium-mobile.html), i need use verify_credentials method. This method require GET params. I change code here: http://pastie.org/1749569 I only receive this return:

"error":"Incorrect signature"
Im going crazy now, pls help :P

thanks

3 Answers

that means that you have not constructed the signature value appropriately and that is why the request is getting rejected

but you are definitely going to need to show more code than what is in the pastie to find a solution

Send param with GET:

var dataGET = {
  true:1
}
 
xhr = ... // You code for initialize HTTPClient
xhr.open('GET', 'YOUR URL');
xhr.send(dataGET);

— answered 3 years ago by Zhuk Vitaliy
answer permalink
1 Comment
  • If i use your code i get this error:

    [DEBUG] *** sendStatus, Response: [400] 
    {"request":"\/1\/account\/verify_credentials.json",
    "error":"This method requires a GET."}

    — commented 3 years ago by Micael Estrazulas

Your Answer

This question has been locked and cannot accept new answers.