Added account_lists(broken)
This commit is contained in:
pare
c9cc873714
commit
7cf813b974
S'han modificat 1 arxius amb 14 adicions i 0 eliminacions
|
@ -607,6 +607,20 @@ class Mastodon:
|
|||
params = self.__generate_params(locals())
|
||||
return self.__api_request('GET', '/api/v1/accounts/search', params)
|
||||
|
||||
@api_version("2.1.0")
|
||||
def account_lists(self, id):
|
||||
"""
|
||||
Get all of the logged in users lists which the specified user is
|
||||
a member of.
|
||||
|
||||
TODO: This doesn't work.
|
||||
|
||||
Returns a list of `list dicts`_.
|
||||
"""
|
||||
params = self.__generate_params(locals(), ['id'])
|
||||
url = '/api/v1/accounts/{0}/lists'.format(str(id))
|
||||
return self.__api_request('GET', url, params)
|
||||
|
||||
###
|
||||
# Reading data: Searching
|
||||
###
|
||||
|
|
Loading…
Referencia en una nova incidència