diff options
author | Lorenz Diener <[email protected]> | 2017-12-13 18:59:32 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-12-13 18:59:32 +0100 |
commit | 7cf813b9744342d0be82330cf5fb81e85fea5642 (patch) | |
tree | 7efe5445ee55037c29c5c73f5ee8896dce2983ae /mastodon | |
parent | c9cc8737142cf71ce5b6e2435b3bf4c00272cd80 (diff) | |
download | mastodon.py-7cf813b9744342d0be82330cf5fb81e85fea5642.tar.gz |
Added account_lists(broken)
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 14 |
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 | ### |