From: Harmon Date: Mon, 11 Jan 2021 18:52:08 +0000 (-0600) Subject: Remove API._add_list_members X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=30712b39b8ef03055a4156876c5ecaaa1ead8997;p=tweepy.git Remove API._add_list_members --- 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,