class RestClient
{
private static $curl;
function __construct()
{
static::$curl = curl_init();
}
function get($url){
$request_headers = [
'api-key: '.COCKPIT_KEY
];
curl_setopt_array(static::$curl, array(
CURLOPT_URL => COCKPIT_URL.'/api/'.$url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_DNS_USE_GLOBAL_CACHE => true,
CURLOPT_HTTP_VERSION => 3,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => $request_headers
));
return json_decode(curl_exec(static::$curl));
}
}
Fatal error: Uncaught Error: Class "RestClient" not found in /home/u759583688/domains/axtra.digital/public_html/conector/int.php:52
Stack trace:
#0 /home/u759583688/domains/axtra.digital/public_html/index.php(2): require()
#1 {main}
thrown in /home/u759583688/domains/axtra.digital/public_html/conector/int.php on line 52