Commit 74b24126 authored by kureta's avatar kureta
Browse files

Added language option at sample streaming endpoint

parent 03eff544
......@@ -290,10 +290,13 @@ class Stream(object):
self.url = '/%s/statuses/retweet.json' % STREAM_VERSION
def sample(self, async=False):
def sample(self, async=False, language=None):
if self.running:
raise TweepError('Stream object already connected!')
self.url = '/%s/statuses/sample.json?delimited=length' % STREAM_VERSION
if language:
self.url += '&language=%s' % language
self.parameters['language'] = language
def filter(self, follow=None, track=None, async=False, locations=None,
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