Source Code
Check YourHosting at Hajana One
Hajana One users can easily find out thier Hosting Status by using the following base url and parameters.
Base URL
http://www.hajanaone.com/api/host_stat.php
Important Parameters
Follow the following parameters
Parameters | Requeired | Where it |
---|---|---|
apikey | Yes | Get your api key from your Dashboard. |
cpuser | Yes | Enter Hosting Username. |
Sample Code
<?php
$apikey = "ZJN*****vB";
$cpuser = "XYZ";
//Sending SMS
$url='https://www.hajanaone.com/api/host_stat.php?apikey='.$apikey.'&cpuser='.$cpuser;
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$result = curl_exec ($ch);
echo $result;
?>
Complete API URL
http://www.hajanaone.com/api/host_stat.php?apikey=e35******vt6&cpuser=XYZ