From f0c6a88091532641feb52e989dd5a9d499aec9de Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 24 May 2021 08:57:14 -0500 Subject: [PATCH] Update and improve documentation for API.remove_list_member --- tweepy/api.py | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index bf63b63..6a457f1 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1837,16 +1837,28 @@ class API: Removes the specified member from the list. The authenticated user must be the list's owner to remove members from the list. - :param list_id: |list_id| - :param slug: |slug| - :param user_id: |user_id| - :param screen_name: |screen_name| - :param owner_screen_name: |owner_screen_name| - :param owner_id: |owner_id| + Parameters + ---------- + list_id + |list_id| + slug + |slug| + user_id + |user_id| + screen_name + |screen_name| + owner_screen_name + |owner_screen_name| + owner_id + |owner_id| - :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-members-destroy + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-members-destroy """ return self.request( 'POST', 'lists/members/destroy', endpoint_parameters=( -- 2.25.1