From 8924efb45a64bad0b9ae7c14c1da7c511d710be2 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 28 Jan 2021 20:15:39 -0600 Subject: [PATCH] Replace API.unretweet id allowed_param with status_id parameter --- tweepy/api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 9d80f46..aa2edea 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -290,16 +290,15 @@ class API: require_auth=True, **kwargs ) - def unretweet(self, *args, **kwargs): + def unretweet(self, status_id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-unretweet-id - :allowed_param: 'id' + :allowed_param: """ return bind_api( *args, api=self, - path='/statuses/unretweet/{id}.json', + path=f'/statuses/unretweet/{status_id}.json', method='POST', payload_type='status', - allowed_param=['id'], require_auth=True, **kwargs ) -- 2.25.1