aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastodon/Mastodon.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 35640fd..0df1217 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -607,6 +607,20 @@ class Mastodon:
607 params = self.__generate_params(locals()) 607 params = self.__generate_params(locals())
608 return self.__api_request('GET', '/api/v1/accounts/search', params) 608 return self.__api_request('GET', '/api/v1/accounts/search', params)
609 609
610 @api_version("2.1.0")
611 def account_lists(self, id):
612 """
613 Get all of the logged in users lists which the specified user is
614 a member of.
615
616 TODO: This doesn't work.
617
618 Returns a list of `list dicts`_.
619 """
620 params = self.__generate_params(locals(), ['id'])
621 url = '/api/v1/accounts/{0}/lists'.format(str(id))
622 return self.__api_request('GET', url, params)
623
610 ### 624 ###
611 # Reading data: Searching 625 # Reading data: Searching
612 ### 626 ###
Powered by cgit v1.2.3 (git 2.41.0)