From 30712b39b8ef03055a4156876c5ecaaa1ead8997 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 11 Jan 2021 12:52:08 -0600 Subject: [PATCH] Remove API._add_list_members --- tweepy/api.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index ef04558..8b36071 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1102,13 +1102,6 @@ class API: def add_list_members(self, screen_name=None, user_id=None, slug=None, list_id=None, owner_id=None, owner_screen_name=None): - """ Perform bulk add of list members from user ID or screenname """ - return self._add_list_members(list_to_csv(screen_name), - list_to_csv(user_id), slug, list_id, - owner_id, owner_screen_name) - - @property - def _add_list_members(self): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-members-create_all :allowed_param: 'screen_name', 'user_id', 'slug', 'list_id', 'owner_id', 'owner_screen_name' @@ -1121,7 +1114,8 @@ class API: allowed_param=['screen_name', 'user_id', 'slug', 'list_id', 'owner_id', 'owner_screen_name'], require_auth=True - ) + )(list_to_csv(screen_name), list_to_csv(user_id), slug, list_id, + owner_id, owner_screen_name) def remove_list_members(self, screen_name=None, user_id=None, slug=None, list_id=None, owner_id=None, -- 2.25.1