Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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"
Expand Down