1

I am following the link Twit NPM

to get access to twitter stream .

I do the following

var T = new Twit({
    consumer_key:         'key',
    consumer_secret:      'key',
    access_token:         'key',
    access_token_secret:  'key'
});

var stream = T.stream('statuses/sample.json');

stream.on('tweet', function (tweet) {
  console.log(tweet)
});

And i get Bad Request Error 401 . Not sure why ,because if i use curl it works.

1 Answer 1

1

ok i figured out. The time on my laptop was 5mins faster that actual time, which was making the call with future timestamp and thus failing.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.