Reordered 'count' in to be first allowed parameter for home_timeline
authorDaniel Lefevre <dpllefevre89@gmail.com>
Sat, 19 Dec 2020 22:45:03 +0000 (17:45 -0500)
committerDaniel Lefevre <dpllefevre89@gmail.com>
Sat, 19 Dec 2020 22:45:03 +0000 (17:45 -0500)
docs/api.rst
tweepy/api.py

index a45b8c7dccc5b433dc0ff32ad81c77c5be23c147..42d2c8fc369b7e0861975ae2aea7867db414c094 100644 (file)
@@ -47,18 +47,18 @@ This page contains some basic documentation for the Tweepy module.
 Timeline methods
 ----------------
 
-.. method:: API.home_timeline([since_id], [max_id], [trim_user], [exclude_replies], \
-                              [count])
+.. method:: API.home_timeline([count], [since_id], [max_id], [trim_user], \
+                              [exclude_replies])
 
    Returns the 20 most recent statuses, including retweets, posted by the
    authenticating user and that user's friends. This is the equivalent of
    /timeline/home on the Web.
 
+   :param count: |count|
    :param since_id: |since_id|
    :param max_id: |max_id|
    :param trim_user: |trim_user|
    :param exclude_replies: |exclude_replies|
-   :param count: |count|
    :rtype: list of :class:`Status` objects
 
 
index 4a2599c76ff3c653b200271c81d0b9912d0d81d3..88faccc33b9cb29fe21ba6d8b36be208361d39ea 100644 (file)
@@ -90,13 +90,13 @@ class API(object):
     @property
     def home_timeline(self):
         """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline
-            :allowed_param: 'since_id', 'max_id', 'count'
+            :allowed_param: 'count', 'since_id', 'max_id'
         """
         return bind_api(
             api=self,
             path='/statuses/home_timeline.json',
             payload_type='status', payload_list=True,
-            allowed_param=['since_id', 'max_id', 'count'],
+            allowed_param=['count', 'since_id', 'max_id'],
             require_auth=True
         )