def _do_request(self, data={}):
        data.update(self.base_data)

        response = requests.post(self.url, data=data)
        response.raise_for_status()
        response_data = response.json()

        # If result is not successful, raise error
        if response_data.get('result') != 'success':
            raise Exception(response_data.get('msg'))

        return response_data
Configures and does the request to the backend API endpoint
dataset/ETHPy150Open marccerrato/python-dns-failover/dns_failover/backends.py/CloudFlareDNS._do_request