API: get_all_ips_info

get_all_ips_info

Discription:
Get the current list of IP addresses.
In answer: parameter "all_ips" will pass all IPs you have (from all your services)
parameter "ips_in_group" will pass all IPs you have grouped
parameter "ips_not_in_group" will contain all IP addresses that were not added to any group ("all_ips" minus " ips_in_group")

Parameter Type Description Required
action string get_all_ips_info required
hash string Your API hash required
userid int Your customer ID required
Example Request (CURL)
$postfields = array(
		"userid"=>$userid,
		"hash"=>$hash,
		"action"=>"get_all_ips_info",
		"ips_list"=>"127.0.0.1,127.0.0.10,127.4.0.1",
		"group_name"=>"proxylogin1",
		);
$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:

{"code":"2001","status":"successful",
"all_ips":"127.0.0.1,127.0.0.2,127.0.0.3,127.0.0.4,127.0.0.5,127.0.0.6",
"ips_in_group":{"login1":"127.0.0.1","login2":"127.0.0.2,127.0.0.3"},
"ips_not_in_group":"127.0.0.4,127.0.0.5,127.0.0.6"}