def __init__(self, username, password): self.token = Authentication(username, password).logon() self.headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer {}'.format(self.token) }
def __init__(self, username, password): self.token = Authentication(username, password).logon() self.headers = {'Authorization': 'Bearer {}'.format(self.token)}