From: Harmon Date: Wed, 10 Feb 2021 04:10:45 +0000 (-0600) Subject: Add trim_user endpoint parameter for API.unretweet X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6d93f3b8a082aca6dc522bfabf7d284f4476e756;p=tweepy.git Add trim_user endpoint parameter for API.unretweet --- diff --git a/tweepy/api.py b/tweepy/api.py index af29c45..f1e86c9 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -416,7 +416,9 @@ class API: """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-unretweet-id """ return self.request( - 'POST', f'statuses/unretweet/{id}', *args, **kwargs + 'POST', f'statuses/unretweet/{id}', *args, endpoint_parameters=( + 'trim_user', + ), **kwargs ) @payload('status', list=True)