def METHOD_NAME(self, url, action):
    resp = requests.METHOD_NAME(
        os.environ["AKAMAI_FAST_PURGE_URL"],
        headers=self.headers,
        data=json.dumps(self.get_payload(obj=url, action=action)),
        auth=self.auth,
    )
    logger.info(
        "Attempted to {action} cache for page {url}, "
        "got back response {message}".format(
            action=action, url=url, message=resp.text
        )
    )
    resp.raise_for_status()