From: Aaron Hill Date: Sat, 3 May 2014 14:47:07 +0000 (-0400) Subject: Add API method for /statuses/lookup.json X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c149dda4e221fac3da78ab7b6b2b8ec193c9d444;p=tweepy.git Add API method for /statuses/lookup.json --- 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',