From: Harmon Date: Fri, 29 Jan 2021 02:14:42 +0000 (-0600) Subject: Replace API.retweet id allowed_param with status_id parameter X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0ccc2ba6147c9809b7ae93a6b0d1fcfb7f2950f5;p=tweepy.git Replace API.retweet id allowed_param with status_id parameter --- diff --git a/tweepy/api.py b/tweepy/api.py index 18d7f43..9d80f46 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -278,16 +278,15 @@ class API: require_auth=True, **kwargs ) - def retweet(self, *args, **kwargs): + def retweet(self, status_id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id - :allowed_param: 'id' + :allowed_param: """ return bind_api( *args, api=self, - path='/statuses/retweet/{id}.json', + path=f'/statuses/retweet/{status_id}.json', method='POST', payload_type='status', - allowed_param=['id'], require_auth=True, **kwargs )