Updated api client to do automatic json parsing. Updated tests to reflect that as well
This commit is contained in:
parent
232bbd2bb7
commit
59c55ae27f
3 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue