Files
kubernetes/dev/itop/itop-integrations/itop-integrations/tester.php
2025-11-23 18:58:51 +01:00

74 lines
889 B
PHP
Executable File

<?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>"; */
?>