API: get_account_services

get_account_services

Discription:
Get information about the services on account

Parameter Type Description Required
action string get_account_services required
hash string Your API hash required
userid int Your customer ID required
Example Request (CURL)
$postfields = array(
		"userid"=>$userid,
		"hash"=>$hash,
		"action"=>"get_account_services",
		);
$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","services":{"2599":{"id":"2599","status":"suspend"},"3110":{"id":"3110","status":"active"}}}