Add trim_user endpoint parameter for API.unretweet
authorHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 04:10:45 +0000 (22:10 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 04:10:45 +0000 (22:10 -0600)
tweepy/api.py

index af29c458dd003cf25df82ae0616b586b3ed5b6c6..f1e86c90c16fff1656fe0b565c2adcc7552a05b2 100644 (file)
@@ -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)