def get_projects(self):
    client = Client()
    result = client.get_user_info(self.get_token(), self.username)
    if (('error' in result) and (result['error'] is True)):
        return []
    else:
        return result['data']['projects']
def get_projects(self):
    client = Client()
    result = client.get_user_info(self.get_token(), self.username)
    if (('error' in result) and (result['error'] is True)):
        return []
    else:
        return result['data']['projects']