From 7cf813b9744342d0be82330cf5fb81e85fea5642 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 13 Dec 2017 18:59:32 +0100 Subject: Added account_lists(broken) --- mastodon/Mastodon.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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: params = self.__generate_params(locals()) return self.__api_request('GET', '/api/v1/accounts/search', params) + @api_version("2.1.0") + def account_lists(self, id): + """ + Get all of the logged in users lists which the specified user is + a member of. + + TODO: This doesn't work. + + Returns a list of `list dicts`_. + """ + params = self.__generate_params(locals(), ['id']) + url = '/api/v1/accounts/{0}/lists'.format(str(id)) + return self.__api_request('GET', url, params) + ### # Reading data: Searching ### -- cgit v1.2.3