Added OEmbed api binding
authorMiriam Sexton <miriam@industrydive.com>
Wed, 13 Feb 2013 15:07:56 +0000 (10:07 -0500)
committerMiriam Sexton <miriam@industrydive.com>
Wed, 13 Feb 2013 15:07:56 +0000 (10:07 -0500)
tweepy/api.py

index 1826cd3e9f3d9ba4b1f75c5e12559d490649dd50..aee0d10111ad3be3c8589e5c6ad50b8fa3a12e61 100644 (file)
@@ -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))