From 52bfb4024b642b8d7a15fa509b893701edd3467f Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 9 Feb 2021 22:12:40 -0600 Subject: [PATCH] Rename status_id API.retweets parameter to id --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index c857846..6b9761d 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -422,11 +422,11 @@ class API: ) @payload('status', list=True) - def retweets(self, status_id, *args, **kwargs): + def retweets(self, id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets-id """ return self.request( - 'GET', f'statuses/retweets/{status_id}', *args, + 'GET', f'statuses/retweets/{id}', *args, endpoint_parameters=( 'count', ), **kwargs -- 2.25.1