I am creating a node.js app that interacts with twitter REST API to get user's information. I cannot get oauth to work as I'm receiving the
rate limit warning "Rate limit exceeded. Clients may not make more than 150 requests per hour". But I am able to get the results with response status set to 200 OKMy GET request header looks like below,
{ authorization: 'OAuth oauth_consumer_key="2SrY0yqoV7u11sBZVazpFg",oauth_nonce="efvvn5fr5VWw",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1341486006",oauth_token="523050582-QizPw7WfKJVrUQ3N0SL3FDYnuO0Kv1i4W0ghjrK1",oauth_version="1.0",oauth_signature="R94taCP2bEHV1z4QV5Bm8IZx2cQ%3D"',
host: 'api.twitter.com',
accept: '*/*',
connection: 'keep-alive',
'user-agent': 'NodeJS',
'content-length': 0,
'content-type': 'application/x-www-form-urlencoded' }
I am able to get my Oauth call without any problem using java and I am getting this issue only with node.js. So my oauth_token seems to be valid and I believe there is something wrong with my header and signed request.
Can anyone please help me in finding what I am doing wrong here? I am using node-v0.8.0 and using request module. I tried node-oauth and other custom written ones but in vain.
Thanks in advance.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en