From: Harmon Date: Sun, 14 Feb 2021 06:08:58 +0000 (-0600) Subject: Stop allowing positional arguments for API.create_mute X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4aae710e05d0ed8906b3cb5bc2fabc8b8f253b44;p=tweepy.git Stop allowing positional arguments for API.create_mute Also improve endpoint parameters order to match Twitter API documentation --- diff --git a/tweepy/api.py b/tweepy/api.py index 5a4a5dd..259b1c9 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -813,12 +813,12 @@ class API: ) @payload('user') - def create_mute(self, *args, **kwargs): + def create_mute(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-mutes-users-create """ return self.request( - 'POST', 'mutes/users/create', *args, endpoint_parameters=( - 'user_id', 'screen_name' + 'POST', 'mutes/users/create', endpoint_parameters=( + 'screen_name', 'user_id' ), **kwargs )