From: Miriam Sexton Date: Wed, 13 Feb 2013 15:22:53 +0000 (-0500) Subject: Fixes for last commit X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1db140d8017f0b33ceb9a272c189b5ee2ab3670e;p=tweepy.git Fixes for last commit --- diff --git a/tests.py b/tests.py index fcacc60..8ce7ce0 100644 --- a/tests.py +++ b/tests.py @@ -45,9 +45,7 @@ class TweepyAPITests(unittest.TestCase): # TODO: Actually have some sort of better assertion def testgetoembed(self): print "testgetoembed" - json_str = self.api.get_oembed(test_tweet_id) - data = json.loads(json_str) - + data = self.api.get_oembed(test_tweet_id) self.assertEqual(data['author_name'], "Twitter") diff --git a/tweepy/api.py b/tweepy/api.py index aee0d10..273e059 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -138,7 +138,7 @@ class API(object): ''' statuses/oembed ''' get_oembed = bind_api( - path = '1.1/statuses/oembed.json', + path = '/statuses/oembed.json', payload_type = 'json', allowed_param = ['id', 'url', 'maxwidth', 'hide_media', 'omit_script', 'align', 'related', 'lang'] )