From: Harmon Date: Mon, 24 May 2021 13:09:20 +0000 (-0500) Subject: Update and improve documentation for API.add_list_member X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4a4fce05fe8f4323cadacc341ab6ca58b9cd2f46;p=tweepy.git Update and improve documentation for API.add_list_member --- diff --git a/tweepy/api.py b/tweepy/api.py index 52990ef..60983f0 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1754,16 +1754,28 @@ class API: Add a member to a list. The authenticated user must own the list to be able to add members to it. Lists are limited to 5,000 members. - :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-create + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-members-create """ return self.request( 'POST', 'lists/members/create', endpoint_parameters=(