.. automethod:: API.get_oembed
+.. automethod:: API.retweeters
+
.. 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.retweeters(id, [cursor], [stringify_ids])
-
- Returns up to 100 user IDs belonging to users who have retweeted the Tweet
- specified by the id parameter.
-
- :param id: |sid|
- :param cursor: |cursor|
- :param stringify_ids: Have ids returned as strings instead.
- :rtype: list of Integers
-
-
.. method:: API.retweets(id, [count])
Returns up to 100 of the first retweets of the given tweet.
), url=url, require_auth=False, **kwargs
)
+ @pagination(mode='cursor')
+ @payload('ids')
+ def retweeters(self, id, **kwargs):
+ """retweeters(id, *, count, cursor, stringify_ids)
+
+ Returns up to 100 user IDs belonging to users who have retweeted the
+ Tweet specified by the ``id`` parameter.
+
+ :param id: |sid|
+ :param count: |count|
+ :param cursor: |cursor|
+ :param stringify_ids: Have IDs returned as strings instead
+
+ :rtype: list of :class:`int`
+
+ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-retweeters-ids
+ """
+ return self.request(
+ 'GET', 'statuses/retweeters/ids', endpoint_parameters=(
+ 'id', 'count', 'cursor', 'stringify_ids'
+ ), id=id, **kwargs
+ )
+
@pagination(mode='id')
@payload('status', list=True)
def retweets_of_me(self, **kwargs):
), **kwargs
)
- @pagination(mode='cursor')
- @payload('ids')
- def retweeters(self, id, **kwargs):
- """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-retweeters-ids
- """
- return self.request(
- 'GET', 'statuses/retweeters/ids', endpoint_parameters=(
- 'id', 'count', 'cursor', 'stringify_ids'
- ), id=id, **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