From 20148c035d0593af2affa0ac759754bcab5d35fc Mon Sep 17 00:00:00 2001 From: Pablo Navarro Castillo Date: Sun, 8 Jun 2014 11:50:26 -0400 Subject: [PATCH] Use the `statuses/filter` endpoint --- chirp.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chirp.js b/chirp.js index c852891..a794650 100644 --- a/chirp.js +++ b/chirp.js @@ -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