How to generate oauth_signature


#1

Hi all
I’ve faced with problem of authenticate to twitter api.
I’m using Nodejs on Parse.com, so I have to use REST api.

For my request header:
“Content-type”:“application/x-www-form-urlencoded;charset=UTF-8”,
“User-Agent”:“Parse.com Cloud Code”,
“Authorization”:“OAuth oauth_callback=https%3A//xxxx/oauth2callback/twitter,
oauth_consumer_key=xxx,
oauth_nonce=xxxx,
oauth_signature=eRgRqX%252Fz9ilgPR7emWg5NnDGMd8%253D,
oauth_signature_method=HMAC-SHA1,
oauth_timestamp=1406216402.091”

I’ve error:
Unable to verify your credentials, code 99

I’m not understand how to generate oauth_signature value, so I’ve tried to generate it with oauth tool on dev.twitter.com, but as I understand it is wrong.
Please, explain me somebody how can I get it.

Thanks