From ff0c1f8024b49b6a6b34b9dcad201def78790029 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 1 Sep 2019 15:28:50 -0500 Subject: [PATCH] Update allowed parameters for API.get_status --- docs/api.rst | 12 +++++++++++- tweepy/api.py | 8 ++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index 8d03a42..b119cfd 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -115,11 +115,21 @@ Timeline methods Status methods -------------- -.. method:: API.get_status(id) +.. method:: API.get_status(id, [trim_user], [include_my_retweet], \ + [include_entities], [include_ext_alt_text], \ + [include_card_uri]) Returns a single status specified by the ID parameter. :param id: |sid| + :param trim_user: |trim_user| + :param include_my_retweet: A boolean indicating if any Tweets returned that + have been retweeted by the authenticating user should include an + additional current_user_retweet node, containing the ID of the source + status for the retweet. + :param include_entities: |include_entities| + :param include_ext_alt_text: |include_ext_alt_text| + :param include_card_uri: |include_card_uri| :rtype: :class:`Status` object diff --git a/tweepy/api.py b/tweepy/api.py index dfef2d6..e4cd103 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -177,13 +177,17 @@ class API(object): @property def get_status(self): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-show-id - :allowed_param: 'id' + :allowed_param: 'id', 'trim_user', 'include_my_retweet', + 'include_entities', 'include_ext_alt_text', + 'include_card_uri' """ return bind_api( api=self, path='/statuses/show.json', payload_type='status', - allowed_param=['id'] + allowed_param=['id', 'trim_user', 'include_my_retweet', + 'include_entities', 'include_ext_alt_text', + 'include_card_uri'] ) def update_status(self, *args, **kwargs): -- 2.25.1