aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-10-12 19:05:46 +0200
committerLorenz Diener <[email protected]>2019-10-12 19:05:46 +0200
commit73c1e9e2d99bc76ffe4320b0a9045562613789ac (patch)
treea3d7dbe357988748ea3c795d949ab155052ed01c /mastodon
parent425fd29f153b812e92eaf1649275685e52dc7c66 (diff)
downloadmastodon.py-73c1e9e2d99bc76ffe4320b0a9045562613789ac.tar.gz
Add me()-function to return user account. Fixes #184
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index c84ac6a..4551cbf 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -966,6 +966,15 @@ class Mastodon:
966 """ 966 """
967 return self.__api_request('GET', '/api/v1/accounts/verify_credentials') 967 return self.__api_request('GET', '/api/v1/accounts/verify_credentials')
968 968
969 @api_version("1.0.0", "2.1.0", __DICT_VERSION_ACCOUNT)
970 def me(self):
971 """
972 Get this users account. Symonym for `account_verify_credentials()`, does exactly
973 the same thing, just exists becase `account_verify_credentials()` has a confusing
974 name.
975 """
976 return self.account_verify_credentials()
977
969 @api_version("1.0.0", "2.7.0", __DICT_VERSION_STATUS) 978 @api_version("1.0.0", "2.7.0", __DICT_VERSION_STATUS)
970 def account_statuses(self, id, only_media=False, pinned=False, exclude_replies=False, max_id=None, min_id=None, since_id=None, limit=None): 979 def account_statuses(self, id, only_media=False, pinned=False, exclude_replies=False, max_id=None, min_id=None, since_id=None, limit=None):
971 """ 980 """
Powered by cgit v1.2.3 (git 2.41.0)