From 76f97cfb731d2123f8663fe1cd702d7a7bc3b93c Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 9 Feb 2021 22:09:26 -0600 Subject: [PATCH] Rename status_id API.unretweet 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 4e3382c..af29c45 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -412,11 +412,11 @@ class API: ) @payload('status') - def unretweet(self, status_id, *args, **kwargs): + def unretweet(self, id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-unretweet-id """ return self.request( - 'POST', f'statuses/unretweet/{status_id}', *args, **kwargs + 'POST', f'statuses/unretweet/{id}', *args, **kwargs ) @payload('status', list=True) -- 2.25.1