diff --git a/api.py b/api.py index 9102bcd..4d7aa82 100644 --- a/api.py +++ b/api.py @@ -254,10 +254,11 @@ class ImageData(object): """ Represents an AppDotNet image, which consists of height, width, and url. """ - def __init__(self, height, width, url): + def __init__(self, height, width, url, is_default): self.height = height self.width = width self.url = url + self.is_default = is_default @property def extension(self): @@ -416,9 +417,10 @@ def __init__(self, **kwargs): class Source(object): - def __init__(self, name, link): + def __init__(self, name, link, client_id): self.name = name self.link = link + self.client_id = client_id class ApiConnection(object): @@ -449,7 +451,7 @@ def make_authorized_request(self, url, post_data=None, method=None): else: error_message = json.loads(e.read())['error'] raise AppDotNetError(error_message, error_url) - return response_data + return response_data['data'] def verify_token(self): url = "https://alpha-api.app.net/stream/0/token"