From 07d7819732b4b5455ba37dad7311dc2933bba760 Mon Sep 17 00:00:00 2001 From: Daniel Lefevre Date: Sat, 26 Dec 2020 22:06:00 -0500 Subject: [PATCH] Removed erroneous uid parameter in user_timeline method and updated allowed params in api.py --- docs/api.rst | 3 +-- tweepy/api.py | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index 245e29a..1a4e569 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -79,7 +79,7 @@ Timeline methods :rtype: list of :class:`Status` objects -.. method:: API.user_timeline([id/user_id/screen_name], [since_id], [count], \ +.. method:: API.user_timeline([user_id/screen_name], [since_id], [count], \ [max_id], [trim_user], [exclude_replies], \ [include_rts]) @@ -87,7 +87,6 @@ Timeline methods the user specified. It's also possible to request another user's timeline via the id parameter. - :param id: |uid| :param user_id: |user_id| :param screen_name: |screen_name| :param since_id: |since_id| diff --git a/tweepy/api.py b/tweepy/api.py index a58b0a1..f325ec1 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -122,16 +122,16 @@ class API(object): @property 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', - 'count', 'max_id', 'trim_user', 'exclude_replies', + :allowed_param: 'user_id', 'screen_name', 'since_id', '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', - 'count', 'max_id', 'trim_user', 'exclude_replies', + allowed_param=['user_id', 'screen_name', 'since_id', 'count', + 'max_id', 'trim_user', 'exclude_replies', 'include_rts'] ) -- 2.25.1