From: Harmon Date: Fri, 29 Jan 2021 02:23:55 +0000 (-0600) Subject: Replace API.retweets id allowed_param with status_id parameter X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=468ea8720ce86714290d93d5143abd702708af61;p=tweepy.git Replace API.retweets id allowed_param with status_id parameter --- diff --git a/tweepy/api.py b/tweepy/api.py index aa2edea..861c624 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -302,15 +302,15 @@ class API: require_auth=True, **kwargs ) - def retweets(self, *args, **kwargs): + def retweets(self, status_id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets-id - :allowed_param: 'id', 'count' + :allowed_param: 'count' """ return bind_api( *args, api=self, - path='/statuses/retweets/{id}.json', + path=f'/statuses/retweets/{status_id}.json', payload_type='status', payload_list=True, - allowed_param=['id', 'count'], + allowed_param=['count'], require_auth=True, **kwargs )