Skip to content

Instantly share code, notes, and snippets.

@alicemaz
Last active October 3, 2015 07:59
Show Gist options
  • Save alicemaz/09e0350aecc70f2851bc to your computer and use it in GitHub Desktop.
Save alicemaz/09e0350aecc70f2851bc to your computer and use it in GitHub Desktop.
minimum twitter stream
"use strict";
var Twit = require("twit");
var T = new Twit({
consumer_key: "",
consumer_secret: "",
access_token: "",
access_token_secret: ""
});
var stream = T.stream("user");
stream.on("tweet", function(tweet) {
console.log(JSON.stringify(tweet,null,"\t"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment