From 48d54effc8444b7f119ded786a6e750accf22027 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 13 Dec 2017 17:47:50 +0100 Subject: Add lists endpoint --- mastodon/Mastodon.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index d8410b3..e8d68a8 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -606,6 +606,18 @@ class Mastodon: params = self.__generate_params(locals()) return self.__api_request('GET', '/api/v1/search', params) + ### + # Reading data: Lists + ### + @api_version("2.1.0") + def lists(self): + """ + Fetch a list of all the Lists by the logged-in user. + + Returns a list of list dicts. + """ + return self.__api_request('GET', '/api/v1/lists') + ### # Reading data: Mutes and Blocks ### -- cgit v1.2.3