Skip to content

Instantly share code, notes, and snippets.

@jshawl jshawl/autofave.js
Created Feb 3, 2014

What would you like to do?
var Twit = require('twit');
var T = new Twit({
consumer_key: '...'
, consumer_secret: '...'
, access_token: '...'
, access_token_secret: '...'
var userid = '...';
var stream ='statuses/filter', { follow: userid })
stream.on('tweet', function (tweet) {'favorites/create', {id: tweet.id_str}, function(err, reply){
if (err) console.log(err);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.