Skip to content

Commit

Permalink
Add trim_user endpoint parameter for API.unretweet
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 10, 2021
1 parent 76f97cf commit 6d93f3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ def unretweet(self, id, *args, **kwargs):
""" :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)
Expand Down

0 comments on commit 6d93f3b

Please sign in to comment.