From 18d254ba6920eb3972ffe339ff87efe3fd0aacfe Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 1 Sep 2019 16:05:59 -0500 Subject: [PATCH] Update allowed parameters for API.statuses_lookup --- docs/api.rst | 5 ++++- tweepy/api.py | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index b119cfd..6b5fe78 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -60,7 +60,8 @@ Timeline methods :rtype: list of :class:`Status` objects -.. method:: API.statuses_lookup(id_, [include_entities], [trim_user], [map_]) +.. method:: API.statuses_lookup(id_, [include_entities], [trim_user], [map_], \ + [include_ext_alt_text], [include_card_uri]) Returns full Tweet objects for up to 100 tweets per request, specified by the `id` parameter. @@ -70,6 +71,8 @@ Timeline methods :param trim_user: |trim_user| :param map_: A boolean indicating whether or not to include tweets that cannot be shown. Defaults to False. + :param include_ext_alt_text: |include_ext_alt_text| + :param include_card_uri: |include_card_uri| :rtype: list of :class:`Status` objects diff --git a/tweepy/api.py b/tweepy/api.py index 5be32d3..3099329 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -101,7 +101,8 @@ class API(object): def statuses_lookup(self, id_, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-lookup - :allowed_param: 'id', 'include_entities', 'trim_user', 'map' + :allowed_param: 'id', 'include_entities', 'trim_user', 'map', + 'include_ext_alt_text', 'include_card_uri' """ kwargs.update({'id': list_to_csv(id_)}) if 'map_' in kwargs: @@ -111,7 +112,8 @@ class API(object): api=self, path='/statuses/lookup.json', payload_type='status', payload_list=True, - allowed_param=['id', 'include_entities', 'trim_user', 'map'], + allowed_param=['id', 'include_entities', 'trim_user', 'map', + 'include_ext_alt_text', 'include_card_uri'], require_auth=True )(*args, **kwargs) -- 2.25.1