From b29ce05bc84132e6fd8cc0fdd27387ef3c88db29 Mon Sep 17 00:00:00 2001 From: bsbkeven Date: Wed, 21 May 2014 11:18:59 -0700 Subject: [PATCH] Update endpoints.py Added endpoint for statuses/lookup (https://dev.twitter.com/docs/api/1.1/get/statuses/lookup). --- twython/endpoints.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/twython/endpoints.py b/twython/endpoints.py index 460b3e9..801ed5a 100644 --- a/twython/endpoints.py +++ b/twython/endpoints.py @@ -73,6 +73,16 @@ class EndpointsMixin(object): """ return self.get('statuses/show/%s' % params.get('id'), params=params) + def lookup_status(self, **params): + """Returns fully-hydrated tweet objects for up to 100 tweets per + request, as specified by comma-separated values passed to the id + parameter. + + Docs: https://dev.twitter.com/docs/api/1.1/get/statuses/lookup + + """ + return self.post('statuses/lookup', params=params) + def destroy_status(self, **params): """Destroys the status specified by the required ID parameter