Restituisce il valore del metodo check monitor
curl -X POST https://demows.fatturazioneelettronica.aruba.it/services/invoice/MonitorCheck \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer NLOGDVXLVaF3tzmnVPkTwpkuh7dG0i09uSCcog3u+rE='
<?php
// The version number (9_5_0) should match version of the Chilkat extension used, omitting the micro-version number.
// For example, if using Chilkat v9.5.0.48, then include as shown here:
include("chilkat_9_5_0.php");
$rest = new CkRest();
// URL: https://demows.fatturazioneelettronica.aruba.it/services/invoice/MonitorCheck
$bTls = true;
$port = 443;
$bAutoReconnect = true;
$success = $rest->Connect('demows.fatturazioneelettronica.aruba.it',$port,$bTls,$bAutoReconnect);
if ($success != true) {
print 'ConnectFailReason: ' . $rest->get_ConnectFailReason() . "\n";
print $rest->lastErrorText() . "\n";
exit;
}
$rest->AddHeader('Content-Type','application/json');
$rest->AddHeader('Authorization','Bearer NLOGDVXLVaF3tzmnVPkTwpkuh7dG0i09uSCcog3u+rE=');
$rest->AddHeader('Accept','application/json');
$sbResponseBody = new CkStringBuilder();
$success = $rest->FullRequestNoBodySb('POST','/services/invoice/MonitorCheck',$sbResponseBody);
if ($success != true) {
print $rest->lastErrorText() . "\n";
exit;
}
$respStatusCode = $rest->get_ResponseStatusCode();
if ($respStatusCode >= 400) {
print 'Response Status Code = ' . $respStatusCode . "\n";
print 'Response Header:' . "\n";
print $rest->responseHeader() . "\n";
print 'Response Body:' . "\n";
print $sbResponseBody->getAsString() . "\n";
exit;
}
$jsonResponse = new CkJsonObject();
$jsonResponse->LoadSb($sbResponseBody);
// See the Online Tool for Generating JSON Parse Code
$errorCode = $jsonResponse->stringOf('errorCode');
$errorDescription = $jsonResponse->stringOf('errorDescription');
$checkValue = $jsonResponse->stringOf('checkValue');
?>
{
"errorCode": "",
"errorDescription": "",
"checkValue": "Service it.arubapec.fatturapa.uploadservice.UploadService STATUS UP"
}