initial commit
This commit is contained in:
73
dev/itop/itop-integrations/tester.php
Executable file
73
dev/itop/itop-integrations/tester.php
Executable 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>"; */
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user