Last active
October 3, 2015 07:59
-
-
Save alicemaz/09e0350aecc70f2851bc to your computer and use it in GitHub Desktop.
minimum twitter stream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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