Commit bad33da5 authored by john's avatar john
Browse files

Added basic support for filter_level parameter for the streaming API

parent fe60c1d8
......@@ -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'] = filter_level
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