From afaab2b8743a11f2a8567873df8ae6ed7873ebb5 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 13 Dec 2017 22:33:29 +0100 Subject: Document list endpoints --- mastodon/Mastodon.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 3b02881..f15ee23 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -1105,14 +1105,6 @@ class Mastodon: id = self.__unpack_id(id) self.__api_request('DELETE', '/api/v1/lists/{0}'.format(id)) - @api_version("2.1.0") - def list_delete(self, id): - """ - Delete a list. - """ - id = self.__unpack_id(id) - self.__api_request('DELETE', '/api/v1/lists/{0}'.format(id)) - @api_version("2.1.0") def list_accounts_add(self, id, account_ids): """ @@ -1125,7 +1117,7 @@ class Mastodon: account_ids = list(map(lambda x: self.__unpack_id(x), account_ids)) params = self.__generate_params(locals(), ['id']) - return self.__api_request('POST', '/api/v1/lists/{0}/accounts'.format(id), params) + self.__api_request('POST', '/api/v1/lists/{0}/accounts'.format(id), params) @api_version("2.1.0") def list_accounts_delete(self, id, account_ids): @@ -1139,7 +1131,7 @@ class Mastodon: account_ids = list(map(lambda x: self.__unpack_id(x), account_ids)) params = self.__generate_params(locals(), ['id']) - return self.__api_request('DELETE', '/api/v1/lists/{0}/accounts'.format(id), params) + self.__api_request('DELETE', '/api/v1/lists/{0}/accounts'.format(id), params) ### # Writing data: Reports -- cgit v1.2.3