From c9cc8737142cf71ce5b6e2435b3bf4c00272cd80 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 13 Dec 2017 18:45:28 +0100 Subject: Add information about unauthenticated methods --- mastodon/Mastodon.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index af450ec..35640fd 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -306,6 +306,8 @@ class Mastodon: """ Retrieve basic information about the instance, including the URI and administrative contact email. + Does not require authentication. + Returns an `instance dict`_. """ return self.__instance() @@ -413,6 +415,8 @@ class Mastodon: """ Fetch information about a single toot. + Does not require authentication for publicly visible statuses. + Returns a `toot dict`_. """ id = self.__unpack_id(id) @@ -425,6 +429,8 @@ class Mastodon: Fetch a card associated with a status. A card describes an object (such as an external video or link) embedded into a status. + Does not require authentication for publicly visible statuses. + Returns a `card dict`_. """ id = self.__unpack_id(id) @@ -436,6 +442,8 @@ class Mastodon: """ Fetch information about ancestors and descendants of a toot. + Does not require authentication for publicly visible statuses. + Returns a `context dict`_. """ id = self.__unpack_id(id) @@ -447,6 +455,8 @@ class Mastodon: """ Fetch a list of users that have reblogged a status. + Does not require authentication for publicly visible statuses. + Returns a list of `user dicts`_. """ id = self.__unpack_id(id) @@ -458,6 +468,8 @@ class Mastodon: """ Fetch a list of users that have favourited a status. + Does not require authentication for publicly visible statuses. + Returns a list of `user dicts`_. """ id = self.__unpack_id(id) @@ -736,6 +748,8 @@ class Mastodon: """ Fetch the list of custom emoji the instance has installed. + Does not require authentication. + Returns a list of `emoji dicts`_. """ -- cgit v1.2.3