Add API method for /statuses/lookup.json
authorAaron Hill <aa1ronham@gmail.com>
Sat, 3 May 2014 14:47:07 +0000 (10:47 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Sat, 3 May 2014 14:47:07 +0000 (10:47 -0400)
tweepy/api.py

index 3d76646fc6dfa2f723a13f09380d04184e9e6e8d..a5e09e1171ab4c89ed18561f271f73cf35695c39 100644 (file)
@@ -46,6 +46,17 @@ class API(object):
         require_auth = True
     )
 
+    def statuses_lookup(self, id, include_entities=None, trim_user=None, map=None):
+        return self._statuses_lookup(list_to_csv(id), include_entities,
+                trim_user, map)
+
+    _statuses_lookup = bind_api(
+        path = '/statuses/lookup.json',
+        payload_type = 'status', payload_list = True,
+        allowed_param = ['id', 'include_entities', 'trim_user', 'map'],
+        require_auth = True
+    )
+
     """ statuses/user_timeline """
     user_timeline = bind_api(
         path = '/statuses/user_timeline.json',