From: Harmon Date: Mon, 15 Feb 2021 07:54:13 +0000 (-0600) Subject: Stop allowing positional arguments for API.subscribe_list X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ee3b718339e5ff8719cf8fc7ada5fc7930e41c13;p=tweepy.git Stop allowing positional arguments for API.subscribe_list Also improve endpoint parameters order to match Twitter API documentation --- diff --git a/tweepy/api.py b/tweepy/api.py index f29ad4d..8ceeb9b 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1066,12 +1066,12 @@ class API: ) @payload('list') - def subscribe_list(self, *args, **kwargs): + def subscribe_list(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-subscribers-create """ return self.request( - 'POST', 'lists/subscribers/create', *args, endpoint_parameters=( - 'owner_screen_name', 'slug', 'owner_id', 'list_id' + 'POST', 'lists/subscribers/create', endpoint_parameters=( + 'owner_screen_name', 'owner_id', 'list_id', 'slug' ), **kwargs )