aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2017-12-13 17:47:50 +0100
committerLorenz Diener <[email protected]>2017-12-13 17:47:50 +0100
commit48d54effc8444b7f119ded786a6e750accf22027 (patch)
treedae496e4fe8c33737d30e8d0453ceb61a327a1ee
parent7ed769b37a9fc27e36023370ad265380cbc50c52 (diff)
downloadmastodon.py-48d54effc8444b7f119ded786a6e750accf22027.tar.gz
Add lists endpoint
-rw-r--r--mastodon/Mastodon.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index d8410b3..e8d68a8 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -607,6 +607,18 @@ class Mastodon:
607 return self.__api_request('GET', '/api/v1/search', params) 607 return self.__api_request('GET', '/api/v1/search', params)
608 608
609 ### 609 ###
610 # Reading data: Lists
611 ###
612 @api_version("2.1.0")
613 def lists(self):
614 """
615 Fetch a list of all the Lists by the logged-in user.
616
617 Returns a list of list dicts.
618 """
619 return self.__api_request('GET', '/api/v1/lists')
620
621 ###
610 # Reading data: Mutes and Blocks 622 # Reading data: Mutes and Blocks
611 ### 623 ###
612 @api_version("1.1.0") 624 @api_version("1.1.0")
Powered by cgit v1.2.3 (git 2.41.0)