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

Merge pull request #278 from wywygmbh/master

Pull request: Added new language parameter to filter endpoint
parents b4fc516f 4bcdf5a8
......@@ -208,7 +208,7 @@ class Stream(object):
def filter(self, follow=None, track=None, async=False, locations=None,
count = None, stall_warnings=False):
count = None, stall_warnings=False, languages=None):
self.parameters = {}
self.headers['Content-type'] = "application/x-www-form-urlencoded"
if self.running:
......@@ -225,6 +225,8 @@ class Stream(object):
self.parameters['count'] = count
if stall_warnings:
self.parameters['stall_warnings'] = stall_warnings
if languages:
self.parameters['language'] = ','.join(map(str, languages))
self.body = urlencode_noplus(self.parameters)
self.parameters['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