Allow tweet_mode=extended in statuses_lookup
authorwalmsley <will@whirlscape.com>
Mon, 11 Sep 2017 22:44:08 +0000 (18:44 -0400)
committerGitHub <noreply@github.com>
Mon, 11 Sep 2017 22:44:08 +0000 (18:44 -0400)
In response to #840

tweepy/api.py

index c652e90012348e051affd019416d2f221da5acd4..f90efdecab5cb6a2c190db7583bd5122baa8c0dd 100644 (file)
@@ -94,20 +94,20 @@ class API(object):
         )
 
     def statuses_lookup(self, id_, include_entities=None,
-                        trim_user=None, map_=None):
+                        trim_user=None, map_=None, tweet_mode=None):
         return self._statuses_lookup(list_to_csv(id_), include_entities,
-                                     trim_user, map_)
+                                     trim_user, map_, tweet_mode)
 
     @property
     def _statuses_lookup(self):
         """ :reference: https://dev.twitter.com/rest/reference/get/statuses/lookup
-            :allowed_param:'id', 'include_entities', 'trim_user', 'map'
+            :allowed_param:'id', 'include_entities', 'trim_user', 'map', 'tweet_mode'
         """
         return bind_api(
             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', 'tweet_mode'],
             require_auth=True
         )