From a2d4b87cc493edb64987b292e937a0b906efbdb1 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 24 May 2021 08:11:31 -0500 Subject: [PATCH] Update and improve documentation for API.add_list_members --- tweepy/api.py | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) 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']) -- 2.25.1