From 9485ebf380a4abfb2c72439b3789f30f664b89cb Mon Sep 17 00:00:00 2001 From: Ricardo Lanziano Date: Mon, 23 Jan 2012 19:52:44 -0500 Subject: [PATCH] Prueba de verificacion de credenciales --- app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app.js b/app.js index 521594b..0adde16 100644 --- a/app.js +++ b/app.js @@ -44,6 +44,17 @@ app.configure('production', function(){ app.get('/', routes.index); +twit.verifyCredentials(function(err, data) { + if(err) throw new Error(err); + console.log(data); +}); + +twit.stream('user', { track: "Iran" }, function(stream) { + stream.on('data', function(data) { + console.log(data); + }); +}); + // Wrap socket.io in app io.listen(app);