def METHOD_NAME(self, email, password):
    log.debug("Attempting login as {0}".format(email))
    # sets some required cookies to login
    data = self.request("POST", self.login_url,
                        data=json.dumps({"id": email, "secret": password}),
                        headers={"Content-Type": "application/json"})
    if "authorisationToken" in data:
        self.auth_token = data["authorisationToken"]
    return self.auth_token