aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-04-27 18:59:54 +0200
committerLorenz Diener <[email protected]>2019-04-27 18:59:54 +0200
commitfb7496c68db5941528d0e32d821b58e255b2cb51 (patch)
tree4957b6bc3fec7a49d47e312bae22e335972061f2
parentedd55ec6fde6eecac09f0aa3aed636e56016bea9 (diff)
downloadmastodon.py-fb7496c68db5941528d0e32d821b58e255b2cb51.tar.gz
Documented some things related to non-authed access
-rw-r--r--mastodon/Mastodon.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 6afab55..e8b900f 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -242,7 +242,9 @@ class Mastodon:
242 """ 242 """
243 Create a new API wrapper instance based on the given `client_secret` and `client_id`. If you 243 Create a new API wrapper instance based on the given `client_secret` and `client_id`. If you
244 give a `client_id` and it is not a file, you must also give a secret. If you specify an 244 give a `client_id` and it is not a file, you must also give a secret. If you specify an
245 `access_token` then you don't need to specify a `client_id`. 245 `access_token` then you don't need to specify a `client_id`. It is allowed to specify
246 neither - in this case, you will be restricted to only using endpoints that do not
247 require authentication.
246 248
247 You can also specify an `access_token`, directly or as a file (as written by `log_in()`_). 249 You can also specify an `access_token`, directly or as a file (as written by `log_in()`_).
248 250
@@ -719,7 +721,9 @@ class Mastodon:
719 def account(self, id): 721 def account(self, id):
720 """ 722 """
721 Fetch account information by user `id`. 723 Fetch account information by user `id`.
722 724
725 Does not require authentication.
726
723 Returns a `user dict`_. 727 Returns a `user dict`_.
724 """ 728 """
725 id = self.__unpack_id(id) 729 id = self.__unpack_id(id)
@@ -735,7 +739,7 @@ class Mastodon:
735 """ 739 """
736 return self.__api_request('GET', '/api/v1/accounts/verify_credentials') 740 return self.__api_request('GET', '/api/v1/accounts/verify_credentials')
737 741
738 @api_version("1.0.0", "2.0.0", __DICT_VERSION_STATUS) 742 @api_version("1.0.0", "2.7.0", __DICT_VERSION_STATUS)
739 def account_statuses(self, id, only_media=False, pinned=False, exclude_replies=False, max_id=None, since_id=None, limit=None): 743 def account_statuses(self, id, only_media=False, pinned=False, exclude_replies=False, max_id=None, since_id=None, limit=None):
740 """ 744 """
741 Fetch statuses by user `id`. Same options as `timeline()`_ are permitted. 745 Fetch statuses by user `id`. Same options as `timeline()`_ are permitted.
@@ -748,6 +752,8 @@ class Mastodon:
748 as of Mastodon 2.1.0, this only works properly for instance-local users. 752 as of Mastodon 2.1.0, this only works properly for instance-local users.
749 If `exclude_replies` is set, filter out all statuses that are replies. 753 If `exclude_replies` is set, filter out all statuses that are replies.
750 754
755 Does not require authentication.
756
751 Returns a list of `toot dicts`_. 757 Returns a list of `toot dicts`_.
752 """ 758 """
753 id = self.__unpack_id(id) 759 id = self.__unpack_id(id)
Powered by cgit v1.2.3 (git 2.41.0)