API: del_hosts_from_block

del_hosts_from_block

Discription:
Delete hosts to block list.

Parameter Type Description Required
action string del_hosts_from_block required
hash string Your API hash required
serviceid string Service ID required
userid int Your customer ID required
ips string A comma-separated list of IP addresses for deleting to the block list. not required
domains string A comma-separated list of domains(without http/https) for deleting to the block list. not required
Example Request (CURL)
$postfields = array(
		"userid"=>$userid,
		"hash"=>$hash,
		"action"=>"del_hosts_from_block",
		"domains"=>"google.com,netflix.com",
		"ips"=>"8.8.4.4,8.8.8.8",
		);
$result = connect_api_proxy007com($postfields);

function connect_api_proxy007com($postfields)
{
	$url = "https://proxy007.com/proxy/api/index.php";
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_TIMEOUT, 900);
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
	$data = curl_exec($ch);
	curl_close($ch);
	return $data;
}

					
Answer:

string(69) "{"code":"2001","status":"successful","action":"del_hosts_from_block"}"