Commit ae1465d3 authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Merge pull request #619 from jrmurray000/master

Added support for the "filter_level" parameter for the streaming API
parents 57dac83e 6d927a9a
......@@ -404,7 +404,7 @@ class Stream(object):
def filter(self, follow=None, track=None, async=False, locations=None,
stall_warnings=False, languages=None, encoding='utf8'):
stall_warnings=False, languages=None, encoding='utf8', filter_level=None):
self.body = {}
self.session.headers['Content-type'] = "application/x-www-form-urlencoded"
if self.running:
......@@ -423,6 +423,8 @@ class Stream(object):
self.body['stall_warnings'] = stall_warnings
if languages:
self.body['language'] = u','.join(map(str, languages))
if filter_level:
self.body['filter_level'] = unicode(filter_level, encoding)
self.session.params = {'delimited': 'length'} = ''
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment