def METHOD_NAME(self, login, password):
    resp = self.call_api("/api/1.0/authentication.json", post={
        "userName": str(login),
        "password": str(password),
    })
    self.token = str(resp["token"])