Skip to content

Commit

Permalink
Merge pull request #58 from KLVTZ/master
Browse files Browse the repository at this point in the history
update: stream example for future reference
  • Loading branch information
desmondmorris committed Jan 7, 2015
2 parents 68f99f4 + 059e705 commit 3230f50
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -112,3 +112,17 @@ client.post('statuses/update', {status: 'TYBG for twitter'}, function(error, pa
});
````

Or even streaming? Let's see whose talking about javascript:

````
// @see configuration above for the client variable
client.stream('statuses/filter', {track: 'javascript'}, function(stream) {
stream.on('data', function(tweet) {
console.log(tweet.text);
});
});
````

0 comments on commit 3230f50

Please sign in to comment.