From c149dda4e221fac3da78ab7b6b2b8ec193c9d444 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Sat, 3 May 2014 10:47:07 -0400 Subject: [PATCH] Add API method for /statuses/lookup.json --- tweepy/api.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tweepy/api.py b/tweepy/api.py index 3d76646..a5e09e1 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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', -- 2.25.1