From: Harmon Date: Fri, 29 Jan 2021 02:15:39 +0000 (-0600) Subject: Replace API.unretweet id allowed_param with status_id parameter X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8924efb45a64bad0b9ae7c14c1da7c511d710be2;p=tweepy.git Replace API.unretweet id allowed_param with status_id parameter --- 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 )