aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastodon/Mastodon.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index b0ec2bb..5c6c085 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -735,6 +735,16 @@ class Mastodon:
735 """ 735 """
736 return self.__stream('/api/v1/streaming/public', listener) 736 return self.__stream('/api/v1/streaming/public', listener)
737 737
738 def local_stream(self, listener):
739 """
740 Streams local events. 'listener' should be a subclass of
741 StreamListener.
742
743 This method blocks forever, calling callbacks on 'listener' for
744 incoming events.
745 """
746 return self.__stream('/api/v1/streaming/public/local', listener)
747
738 def hashtag_stream(self, tag, listener): 748 def hashtag_stream(self, tag, listener):
739 """ 749 """
740 Returns all public statuses for the hashtag 'tag'. 'listener' should be 750 Returns all public statuses for the hashtag 'tag'. 'listener' should be
Powered by cgit v1.2.3 (git 2.41.0)