From: Harmon Date: Sat, 13 Feb 2021 19:56:26 +0000 (-0600) Subject: Stop allowing positional arguments for API.favorites X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e80b49aded75b9cf75e168760c095a6d1a5f70ac;p=tweepy.git Stop allowing positional arguments for API.favorites Also improve endpoint parameters order to match Twitter API documentation --- 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 )