From 7873ae1b0882132b9ec332dc08b02b32529a8bdd Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 9 Feb 2021 22:06:58 -0600 Subject: [PATCH] Rename status_id API.retweet 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 d07c7e4..5a35635 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -402,11 +402,11 @@ class API: ) @payload('status') - def retweet(self, status_id, *args, **kwargs): + def retweet(self, id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id """ return self.request( - 'POST', f'statuses/retweet/{status_id}', *args, **kwargs + 'POST', f'statuses/retweet/{id}', *args, **kwargs ) @payload('status') -- 2.25.1