Merge pull request #49 from fumi-san/master
Add local_stream method for getting local streaming timeline.
This commit is contained in:
commit
dd77dff7ba
S'han modificat 1 arxius amb 10 adicions i 0 eliminacions
|
@ -735,6 +735,16 @@ class Mastodon:
|
|||
"""
|
||||
return self.__stream('/api/v1/streaming/public', listener)
|
||||
|
||||
def local_stream(self, listener):
|
||||
"""
|
||||
Streams local events. 'listener' should be a subclass of
|
||||
StreamListener.
|
||||
|
||||
This method blocks forever, calling callbacks on 'listener' for
|
||||
incoming events.
|
||||
"""
|
||||
return self.__stream('/api/v1/streaming/public/local', listener)
|
||||
|
||||
def hashtag_stream(self, tag, listener):
|
||||
"""
|
||||
Returns all public statuses for the hashtag 'tag'. 'listener' should be
|
||||
|
|
Loading…
Referencia en una nova incidència