def __init__(self, ctx):
    self.ctx = ctx
    self.credentials = Credentials(ctx).load()
    self.ctx.rest_api = RestApi(self.credentials.api_url, self.credentials.token)
def __init__(self, ctx):
    self.ctx = ctx
    self.credentials = Credentials(ctx).load()
    self.ctx.rest_api = RestApi(self.credentials.api_url, self.credentials.token)