From: Miriam Sexton Date: Wed, 13 Feb 2013 15:07:56 +0000 (-0500) Subject: Added OEmbed api binding X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d194597f48a3ae9fdb2e97bfe27223f32060546d;p=tweepy.git Added OEmbed api binding --- diff --git a/tweepy/api.py b/tweepy/api.py index 1826cd3..aee0d10 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -136,6 +136,13 @@ class API(object): allowed_param = ['id', 'user_id', 'screen_name'] ) + ''' statuses/oembed ''' + get_oembed = bind_api( + path = '1.1/statuses/oembed.json', + payload_type = 'json', + allowed_param = ['id', 'url', 'maxwidth', 'hide_media', 'omit_script', 'align', 'related', 'lang'] + ) + """ Perform bulk look up of users from user ID or screenname """ def lookup_users(self, user_ids=None, screen_names=None): return self._lookup_users(list_to_csv(user_ids), list_to_csv(screen_names))