Skip to content

Commit

Permalink
Use the statuses/filter endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pnavarrc committed Jun 8, 2014
1 parent 7532b90 commit 20148c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chirp.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ var topics = [];
// Configure the Twit object with the application credentials
var T = new Twit(config);

// Filter by location (the world) and tweets in english
var filterOptions = {locations: '-180,-90,180,90', language: 'en'};

// Creates a new stream object, tracking the updated topic list
var twitterStream = T.stream('statuses/sample');
var twitterStream = T.stream('statuses/filter', filterOptions);

// Callbacks for Twit Stream Events

Expand Down

0 comments on commit 20148c0

Please sign in to comment.