COS-Abfrage
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
include("../lib/C3GovConnector.php");
|
||||
|
||||
use lib\C3GovConnector;
|
||||
|
||||
$testId = $_POST['testId'] ?? null;
|
||||
//$refNo = $argv[1] ?? null;
|
||||
|
||||
if (!$testId) {
|
||||
echo( json_encode( [ 'error' => 'No test id provided' ] ));
|
||||
}
|
||||
else {
|
||||
$c3gov = new C3GovConnector();
|
||||
echo( json_encode($c3gov->getCos($testId)));
|
||||
}
|
||||
Reference in New Issue
Block a user