Add lists endpoint
This commit is contained in:
pare
7ed769b37a
commit
48d54effc8
S'han modificat 1 arxius amb 12 adicions i 0 eliminacions
|
@ -606,6 +606,18 @@ class Mastodon:
|
||||||
params = self.__generate_params(locals())
|
params = self.__generate_params(locals())
|
||||||
return self.__api_request('GET', '/api/v1/search', params)
|
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
|
# Reading data: Mutes and Blocks
|
||||||
###
|
###
|
||||||
|
|
Loading…
Referencia en una nova incidència