From: Harmon Date: Mon, 24 May 2021 13:11:31 +0000 (-0500) Subject: Update and improve documentation for API.add_list_members X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a2d4b87cc493edb64987b292e937a0b906efbdb1;p=tweepy.git Update and improve documentation for API.add_list_members --- diff --git a/tweepy/api.py b/tweepy/api.py index 60983f0..bf63b63 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1793,18 +1793,30 @@ class API: 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: A comma separated list of user IDs, up to 100 are - allowed in a single request - :param screen_name: A comma separated list of screen names, up to 100 - are allowed in a single request - :param owner_screen_name: |owner_screen_name| - :param owner_id: |owner_id| + Parameters + ---------- + list_id + |list_id| + slug + |slug| + user_id + A comma separated list of user IDs, up to 100 are allowed in a + single request + screen_name + A comma separated list of screen names, up to 100 are allowed in a + single request + 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_all + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-members-create_all """ if 'user_id' in kwargs: kwargs['user_id'] = list_to_csv(kwargs['user_id'])