Are the objects in the Twit instantiation hash actually 'abc'? On Fri, Sep 5, 2014 at 5:37 PM, Sarfaraz Hussain <[email protected]> wrote:
> you can also answer this question on stackoverflow > <http://stackoverflow.com/questions/25693912/how-to-follow-statuses-of-a-list-of-users-using-twitter-streaming-api-in-node-js> > > I am using twit node.js module for twitter api, I am trying to get status > stream of a list of users by using their id but when i run the script it > the following error > > Error: Bad Twitter streaming request: 406 > > Following is the code > > var http = require('http'), server = http.createServer(app), Twit = > require('twit') > server.listen(4040); > var T = new Twit({ > consumer_key: 'abc', consumer_secret: 'abc', access_token: > 'abc', access_token_secret: 'abc'});var watchList = ['@Kashmala_Tariq', > '@Mushahid', '@Fbuttho'];var stream = T.stream('statuses/filter', { follow : > watchList }); > > stream.on('tweet', function (tweet) { > console.log('@'+tweet.user.screen_name + ':::' + tweet.text);}); > > this is the link to the api i am using twit > <https://github.com/ttezel/twit>twit-module > <https://github.com/ttezel/twit> > > please guide me what is it that i am doing wrong in this script > > -- > Job board: http://jobs.nodejs.org/ > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > Old group rules: > 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 unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/14b4c58f-294c-4728-8b31-b52608ef852a%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/14b4c58f-294c-4728-8b31-b52608ef852a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CALgvumU9B8TG03euxL8geZtRmvxKC8_fvFa0%2BwzDT1i_Sa6i_g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
