initial commit

This commit is contained in:
allard
2025-11-23 18:58:51 +01:00
commit 376a944abc
1553 changed files with 314731 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
<?php
include('apifunction.php');
$itopApi = new itopApi;
/** GET Function Test **/
/**
$api = $itopApi->get("Incident","1620");
echo "<pre>";
print_r($api);
echo "</pre>";
**/
/** ASSIGN (Stimulus) Function Test **/
/* $param['comment'] = "Assigned from API";
$param['stimulus'] = "ev_assign";
$param['class'] = "Incident";
$param['key'] = "1620";
$fields['team_id'] = "39";
$fields['agent_id'] = "3";
$api = $itopApi->stimulus($param,$fields);
echo "<pre>";
print_r($api);
echo "</pre>"; */
/** RESOLVE (Stimulus) Function Test **/
/* $param['comment'] = "Resolved from API";
$param['stimulus'] = "ev_resolve";
$param['class'] = "Incident";
$param['key'] = "1653";
$fields['solution'] = "PC Sudah terinstall iReap";
$api = $itopApi->stimulus($param,$fields);
echo "<pre>";
print_r($api);
echo "</pre>"; */
?>