From: Daniel Lefevre Date: Sun, 27 Dec 2020 03:06:00 +0000 (-0500) Subject: Removed erroneous uid parameter in user_timeline method and updated allowed params... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=07d7819732b4b5455ba37dad7311dc2933bba760;p=tweepy.git Removed erroneous uid parameter in user_timeline method and updated allowed params in api.py --- 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'] )