From: Harmon Date: Mon, 24 May 2021 14:09:45 +0000 (-0500) Subject: Update and improve documentation for API.unsubscribe_list X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=49b488a781420dcd3728a333f0a77de0efd89bb5;p=tweepy.git Update and improve documentation for API.unsubscribe_list --- diff --git a/tweepy/api.py b/tweepy/api.py index 998d49d..5ff20a6 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1949,14 +1949,24 @@ class API: Unsubscribes the authenticated user from the specified list. - :param list_id: |list_id| - :param slug: |slug| - :param owner_screen_name: |owner_screen_name| - :param owner_id: |owner_id| + Parameters + ---------- + list_id + |list_id| + slug + |slug| + 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-subscribers-destroy + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-subscribers-destroy """ return self.request( 'POST', 'lists/subscribers/destroy', endpoint_parameters=(