Permalink
Browse files

Prueba de verificacion de credenciales

  • Loading branch information...
1 parent 83be4fe commit 9485ebf380a4abfb2c72439b3789f30f664b89cb Ricardo Lanziano committed Jan 24, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 app.js
View
11 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);

0 comments on commit 9485ebf

Please sign in to comment.