From: Daniel Lefevre Date: Sat, 19 Dec 2020 22:45:03 +0000 (-0500) Subject: Reordered 'count' in to be first allowed parameter for home_timeline X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=71571ad64ff35ecb0d8906ae1878711eaa6daebc;p=tweepy.git Reordered 'count' in to be first allowed parameter for home_timeline --- diff --git a/docs/api.rst b/docs/api.rst index a45b8c7..42d2c8f 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 diff --git a/tweepy/api.py b/tweepy/api.py index 4a2599c..88faccc 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 )