Updated api client to do automatic json parsing. Updated tests to reflect that as well

This commit is contained in:
Rudi Grinberg 2012-10-30 15:19:51 -04:00
parent 232bbd2bb7
commit 59c55ae27f
3 changed files with 7 additions and 5 deletions

View file

@ -82,7 +82,7 @@ class ApiRequest(object):
def __call__(self, **kwargs):
final_url = self.url.params(**kwargs).url()
response = urllib2.urlopen(final_url).read()
return response
return json.loads(response)
class RequestProvider(object):
""" Creates the available ApiRequest instance that can be read from