diff options
author | Lorenz Diener <[email protected]> | 2017-12-13 18:45:28 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-12-13 18:45:28 +0100 |
commit | c9cc8737142cf71ce5b6e2435b3bf4c00272cd80 (patch) | |
tree | 3a35ffad95f5ef06bcf8e918b4d21eb8f5e85a11 /mastodon | |
parent | 7d2f2441269fda71b72322825b5813a2aec4c7bd (diff) | |
download | mastodon.py-c9cc8737142cf71ce5b6e2435b3bf4c00272cd80.tar.gz |
Add information about unauthenticated methods
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 14 |
1 files changed, 14 insertions, 0 deletions
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: | |||
306 | """ | 306 | """ |
307 | Retrieve basic information about the instance, including the URI and administrative contact email. | 307 | Retrieve basic information about the instance, including the URI and administrative contact email. |
308 | 308 | ||
309 | Does not require authentication. | ||
310 | |||
309 | Returns an `instance dict`_. | 311 | Returns an `instance dict`_. |
310 | """ | 312 | """ |
311 | return self.__instance() | 313 | return self.__instance() |
@@ -413,6 +415,8 @@ class Mastodon: | |||
413 | """ | 415 | """ |
414 | Fetch information about a single toot. | 416 | Fetch information about a single toot. |
415 | 417 | ||
418 | Does not require authentication for publicly visible statuses. | ||
419 | |||
416 | Returns a `toot dict`_. | 420 | Returns a `toot dict`_. |
417 | """ | 421 | """ |
418 | id = self.__unpack_id(id) | 422 | id = self.__unpack_id(id) |
@@ -425,6 +429,8 @@ class Mastodon: | |||
425 | Fetch a card associated with a status. A card describes an object (such as an | 429 | Fetch a card associated with a status. A card describes an object (such as an |
426 | external video or link) embedded into a status. | 430 | external video or link) embedded into a status. |
427 | 431 | ||
432 | Does not require authentication for publicly visible statuses. | ||
433 | |||
428 | Returns a `card dict`_. | 434 | Returns a `card dict`_. |
429 | """ | 435 | """ |
430 | id = self.__unpack_id(id) | 436 | id = self.__unpack_id(id) |
@@ -436,6 +442,8 @@ class Mastodon: | |||
436 | """ | 442 | """ |
437 | Fetch information about ancestors and descendants of a toot. | 443 | Fetch information about ancestors and descendants of a toot. |
438 | 444 | ||
445 | Does not require authentication for publicly visible statuses. | ||
446 | |||
439 | Returns a `context dict`_. | 447 | Returns a `context dict`_. |
440 | """ | 448 | """ |
441 | id = self.__unpack_id(id) | 449 | id = self.__unpack_id(id) |
@@ -447,6 +455,8 @@ class Mastodon: | |||
447 | """ | 455 | """ |
448 | Fetch a list of users that have reblogged a status. | 456 | Fetch a list of users that have reblogged a status. |
449 | 457 | ||
458 | Does not require authentication for publicly visible statuses. | ||
459 | |||
450 | Returns a list of `user dicts`_. | 460 | Returns a list of `user dicts`_. |
451 | """ | 461 | """ |
452 | id = self.__unpack_id(id) | 462 | id = self.__unpack_id(id) |
@@ -458,6 +468,8 @@ class Mastodon: | |||
458 | """ | 468 | """ |
459 | Fetch a list of users that have favourited a status. | 469 | Fetch a list of users that have favourited a status. |
460 | 470 | ||
471 | Does not require authentication for publicly visible statuses. | ||
472 | |||
461 | Returns a list of `user dicts`_. | 473 | Returns a list of `user dicts`_. |
462 | """ | 474 | """ |
463 | id = self.__unpack_id(id) | 475 | id = self.__unpack_id(id) |
@@ -736,6 +748,8 @@ class Mastodon: | |||
736 | """ | 748 | """ |
737 | Fetch the list of custom emoji the instance has installed. | 749 | Fetch the list of custom emoji the instance has installed. |
738 | 750 | ||
751 | Does not require authentication. | ||
752 | |||
739 | Returns a list of `emoji dicts`_. | 753 | Returns a list of `emoji dicts`_. |
740 | 754 | ||
741 | """ | 755 | """ |