Solved the problem.
@Roly Fentanes & @pushpinder rattan Thanks a lot guys for your reply. I tried node-oauth, request, ntwitter etc and nothing worked.. Everything was right and the problem is with the twitter app I have created. Something have messed up. I recreated my twitter app and got the new oauth token and it started working... I found this article useful for debugging oauth, https://dev.twitter.com/discussions/204 Thanks a lot... On Thursday, July 5, 2012 7:07:04 PM UTC+8, Sara P wrote: > > 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 OK > > My 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en