.. automethod:: API.retweeters
+.. automethod:: API.retweets
+
.. method:: API.retweets_of_me([since_id], [max_id], [count], [page])
Returns the 20 most recent tweets of the authenticated user that have been
:rtype: :class:`Status` object
-.. method:: API.retweets(id, [count])
-
- Returns up to 100 of the first retweets of the given tweet.
-
- :param id: |sid|
- :param count: Specifies the number of retweets to retrieve.
- :rtype: list of :class:`Status` objects
-
-
.. method:: API.unretweet(id)
Untweets a retweeted status. Requires the id of the retweet to unretweet.
), id=id, **kwargs
)
+ @payload('status', list=True)
+ def retweets(self, id, **kwargs):
+ """retweets(id, *, count, trim_user)
+
+ Returns up to 100 of the first Retweets of the given Tweet.
+
+ :param id: |sid|
+ :param count: |count|
+ :param trim_user: |trim_user|
+
+ :rtype: list of :class:`Status` objects
+
+ :reference: 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=(
+ 'count', 'trim_user'
+ ), **kwargs
+ )
+
@pagination(mode='id')
@payload('status', list=True)
def retweets_of_me(self, **kwargs):
), **kwargs
)
- @payload('status', list=True)
- def retweets(self, id, **kwargs):
- """ :reference: 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=(
- 'count', 'trim_user'
- ), **kwargs
- )
-
@payload('user')
def get_user(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-show