Reordered allowed parameters in user_timeline in api.py to correspond to documentation
authorDaniel Lefevre <dpllefevre89@gmail.com>
Sat, 26 Dec 2020 19:27:13 +0000 (14:27 -0500)
committerDaniel Lefevre <dpllefevre89@gmail.com>
Sat, 26 Dec 2020 19:27:13 +0000 (14:27 -0500)
tweepy/api.py

index 03eec1483445f5e255c060db231da3ee814d6a49..a58b0a1faadf2d7ce0d3ee3de16dc63e5694a763 100644 (file)
@@ -123,16 +123,16 @@ class API(object):
     def user_timeline(self):
         """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline
             :allowed_param: 'id', 'user_id', 'screen_name', 'since_id',
-                            'max_id', 'count', 'include_rts', 'trim_user',
-                            'exclude_replies'
+                            'count', 'max_id', 'trim_user', 'exclude_replies',
+                            'include_rts'
         """
         return bind_api(
             api=self,
             path='/statuses/user_timeline.json',
             payload_type='status', payload_list=True,
             allowed_param=['id', 'user_id', 'screen_name', 'since_id',
-                           'max_id', 'count', 'include_rts', 'trim_user',
-                           'exclude_replies']
+                           'count', 'max_id', 'trim_user', 'exclude_replies',
+                           'include_rts']
         )
 
     @property