From 2d17678cffa4136f42931d0a9bb7c93fe56c3388 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 24 May 2021 08:06:58 -0500 Subject: [PATCH] Update and improve documentation for API.destroy_list --- tweepy/api.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 39cae26..52990ef 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1721,14 +1721,24 @@ class API: Deletes the specified list. The authenticated user must own the list to be able to destroy it. - :param owner_screen_name: |owner_screen_name| - :param owner_id: |owner_id| - :param list_id: |list_id| - :param slug: |slug| + Parameters + ---------- + owner_screen_name + |owner_screen_name| + owner_id + |owner_id| + list_id + |list_id| + slug + |slug| - :rtype: :class:`List` object + Returns + ------- + :class:`~tweepy.models.List` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-destroy + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-destroy """ return self.request( 'POST', 'lists/destroy', endpoint_parameters=( -- 2.25.1