From ee0a95782e17e9cde08310b9213137a446e74726 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 22 May 2021 08:17:02 -0500 Subject: [PATCH] Update and improve documentation for API.retweets --- tweepy/api.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index f5b4dfb..633c52a 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -782,13 +782,22 @@ class API: Returns up to 100 of the first Retweets of the given Tweet. - :param id: |sid| - :param count: |count| - :param trim_user: |trim_user| + Parameters + ---------- + id + |sid| + count + |count| + trim_user + |trim_user| - :rtype: list of :class:`Status` objects + Returns + ------- + :py:class:`List`\ [:class:`~tweepy.models.Status`] - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-retweets-id + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-retweets-id """ return self.request( 'GET', f'statuses/retweets/{id}', endpoint_parameters=( -- 2.25.1