def _request(self, data):
        """

        :param data: Request body to be sent to Cloudflare
        :type data: dict
        :return: Response from Cloudflare
        :rtype: dict
        """
        data['host_key'] = self._host_key
        response = requests.post(self.CLOUDFLARE_URL, data=data, verify=True).json()
        if response['result'] == 'error':
            raise APIError(response['msg'], response.get('err_code'))
        return response
def _request ( self , data ) : data [ 'host_key' ] = self . _host_key response = requests . post ( self . CLOUDFLARE_URL , data = data , verify = True ) . json ( ) if response [ 'result' ] == 'error' : raise APIError ( response [ 'msg' ] , response . get ( 'err_code' ) ) return response
:param data: Request body to be sent to Cloudflare
        :type data: dict
        :return: Response from Cloudflare
        :rtype: dict