From 468ea8720ce86714290d93d5143abd702708af61 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 28 Jan 2021 20:23:55 -0600 Subject: [PATCH] Replace API.retweets id allowed_param with status_id parameter --- tweepy/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ) -- 2.25.1