Hi aaPanel_Jose Im trying to use the API, I read the docs but some still confuse, would you mind correcting me? Im getting the same error as this topic
`
$api_sk = 'XXXXXXXXXXXXXXX';
$request_time = time();
$request_token = md5($request_time.''.md5($api_sk));
$url = 'http://XXXXXX:XXXXXX/system?action=GetSystemTotal';
$data = array(
'request_time' => $request_time,
'request_token' => $request_token
);
// use key 'http' even if you send the request to https://...
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data)
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) {
echo $result;
}
echo $result;`