.. automethod:: API.home_timeline
+.. automethod:: API.mentions_timeline
+
.. method:: API.statuses_lookup(id_, [include_entities], [trim_user], [map_], \
[include_ext_alt_text], [include_card_uri])
:rtype: list of :class:`Status` objects
-.. method:: API.mentions_timeline([since_id], [max_id], [count])
-
- Returns the 20 most recent mentions, including retweets.
-
- :param since_id: |since_id|
- :param max_id: |max_id|
- :param count: |count|
- :rtype: list of :class:`Status` objects
-
-
Status methods
--------------
), **kwargs
)
+ @pagination(mode='id')
+ @payload('status', list=True)
+ def mentions_timeline(self, **kwargs):
+ """mentions_timeline(*, count, since_id, max_id, trim_user, \
+ include_entities)
+
+ Returns the 20 most recent mentions, including retweets.
+
+ :param count: |count|
+ :param since_id: |since_id|
+ :param max_id: |max_id|
+ :param trim_user: |trim_user|
+ :param include_entities: |include_entities|
+
+ :rtype: list of :class:`Status` objects
+
+ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/timelines/api-reference/get-statuses-mentions_timeline
+ """
+ return self.request(
+ 'GET', 'statuses/mentions_timeline', endpoint_parameters=(
+ 'count', 'since_id', 'max_id', 'trim_user', 'include_entities'
+ ), **kwargs
+ )
+
@payload('status', list=True)
def statuses_lookup(self, id, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-lookup
), **kwargs
)
- @pagination(mode='id')
- @payload('status', list=True)
- def mentions_timeline(self, **kwargs):
- """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/timelines/api-reference/get-statuses-mentions_timeline
- """
- return self.request(
- 'GET', 'statuses/mentions_timeline', endpoint_parameters=(
- 'count', 'since_id', 'max_id', 'trim_user', 'include_entities'
- ), **kwargs
- )
-
@pagination(mode='id')
@payload('status', list=True)
def retweets_of_me(self, **kwargs):