From e80b49aded75b9cf75e168760c095a6d1a5f70ac Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 13 Feb 2021 13:56:26 -0600 Subject: [PATCH] Stop allowing positional arguments for API.favorites Also improve endpoint parameters order to match Twitter API documentation --- tweepy/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 9895012..bccff3d 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -740,12 +740,12 @@ class API: @pagination(mode='id') @payload('status', list=True) - def favorites(self, *args, **kwargs): + def favorites(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-favorites-list """ return self.request( - 'GET', 'favorites/list', *args, endpoint_parameters=( - 'screen_name', 'user_id', 'max_id', 'count', 'since_id', + 'GET', 'favorites/list', endpoint_parameters=( + 'user_id', 'screen_name', 'count', 'since_id', 'max_id', 'include_entities' ), **kwargs ) -- 2.25.1