Add lists endpoint

This commit is contained in:
Lorenz Diener 2017-12-13 17:47:50 +01:00
pare 7ed769b37a
commit 48d54effc8

Veure arxiu

@ -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
###