API: get_service_info

get_service_info

Discription:
Get information about the service

Parameter Type Description Required
action string get_service_info required
hash string Your API hash required
userid int Your customer ID required
serviceid int Service ID required
Example Request (CURL)
$postfields = array(
		"userid"=>$userid,
		"hash"=>$hash,
		"action"=>"get_service_info",
		"serviceid"=>"111"
		);
$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","ips":"1.8.4.67,3.48.64.17","renewal_price":"1.40","currency":"USD","nextduedate":"2020-12-04 11:20:22","login":"LOGIN","password":"PASSWORD","socks5_port":"30000","http_port":"20000","expired_time":1607098822,"service_status":"active","socks5_url_proxylist":"https:\/\/proxy007.com\/proxy_list\/proxies.php?hash=HASH&type=socks5","http_url_proxylist":"https:\/\/proxy007.com\/proxy_list\/proxies.php?hash=HASH&type=http","serviceid":"3312","invoices":[{"id":368,"status":"Paid","date":"2020-08-04","datepaid":"2020-08-04 11:20:23","duedate":"2020-08-04","amount":"0.90"},{"id":369,"status":"Paid","date":"2020-08-04","datepaid":"2020-08-04 11:23:50","duedate":"2020-09-04","amount":"0.90"},{"id":370,"status":"Paid","date":"2020-08-04","datepaid":"2020-08-04 11:58:45","duedate":"2020-10-04","amount":"1.40"},{"id":371,"status":"Paid","date":"2020-08-04","datepaid":"2020-08-04 12:07:37","duedate":"2020-11-04","amount":"1.20"}]}"