Update allowed parameters for API.statuses_lookup
authorHarmon <Harmon758@gmail.com>
Sun, 1 Sep 2019 21:05:59 +0000 (16:05 -0500)
committerHarmon <Harmon758@gmail.com>
Sun, 1 Sep 2019 21:05:59 +0000 (16:05 -0500)
docs/api.rst
tweepy/api.py

index b119cfdee00486f96bc6f02fa5e453580323af01..6b5fe78c0ca82a8c6428440cb8c3bf6d37180323 100644 (file)
@@ -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
 
 
index 5be32d37b394ac8c6405db55bfc533768bbb08fe..3099329aeb80f3b873fcb9e44854f668d09f5a5d 100644 (file)
@@ -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)