From: Harmon Date: Sat, 22 May 2021 17:46:53 +0000 (-0500) Subject: Update and improve documentation for API.retweet X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0074bda4620f5e251c504be19534d991b148becd;p=tweepy.git Update and improve documentation for API.retweet --- diff --git a/tweepy/api.py b/tweepy/api.py index 70e2a30..11c7c36 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -974,12 +974,20 @@ class API: Retweets a Tweet. Requires the ID of the Tweet you are retweeting. - :param id: |sid| - :param trim_user: |trim_user| + Parameters + ---------- + id + |sid| + trim_user + |trim_user| - :rtype: :class:`Status` object + Returns + ------- + :class:`~tweepy.models.Status` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-retweet-id + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-retweet-id """ return self.request( 'POST', f'statuses/retweet/{id}', endpoint_parameters=(