From 73c1e9e2d99bc76ffe4320b0a9045562613789ac Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 12 Oct 2019 19:05:46 +0200 Subject: Add me()-function to return user account. Fixes #184 --- mastodon/Mastodon.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mastodon') 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: """ return self.__api_request('GET', '/api/v1/accounts/verify_credentials') + @api_version("1.0.0", "2.1.0", __DICT_VERSION_ACCOUNT) + def me(self): + """ + Get this users account. Symonym for `account_verify_credentials()`, does exactly + the same thing, just exists becase `account_verify_credentials()` has a confusing + name. + """ + return self.account_verify_credentials() + @api_version("1.0.0", "2.7.0", __DICT_VERSION_STATUS) def account_statuses(self, id, only_media=False, pinned=False, exclude_replies=False, max_id=None, min_id=None, since_id=None, limit=None): """ -- cgit v1.2.3