API Example
<?php/* API URL */ $url = 'https://www.gametracker.ro/api/v1/server/query?game_type=cs16&ip=AIM.DUAL-GAMING.RO&c_port=27015&q_port=27015';
/* Init cURL resource */ $ch = curl_init($url);
/* set the content type json */ $headers = []; $headers[] = 'Content-Type:application/json';
/* your token */ $token = "your token"; $headers[] = "Authorization: Bearer ".$token; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
/* set return type json */ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
/* execute request */ $result = curl_exec($ch);
/* close cURL resource */ curl_close($ch);
echo '<pre>'; print_r($result); echo '</pre>';
?>
Result from above code can be found here.