mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3464: fix ci
This commit is contained in:
@@ -141,7 +141,7 @@ JSON;
|
||||
//'pass json_data as file' => [ 'bCallApiViaFile' => true]
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
private function UpdateTicketViaApi($iId, $description){
|
||||
$sJsonUpdateContent = <<<JSON
|
||||
{"operation": "core/update","comment": "test","class": "UserRequest","key":"$iId","output_fields": "description","fields":{"description": "$description"}}
|
||||
@@ -202,13 +202,14 @@ JSON;
|
||||
$aPostFields['json_data'] = $sJsonDataContent;
|
||||
}
|
||||
|
||||
curl_setopt($ch, CURLOPT_URL, "http://localhost/iTop/webservices/rest.php");
|
||||
curl_setopt($ch, CURLOPT_URL, "http://webserver/iTop/webservices/rest.php");
|
||||
curl_setopt($ch, CURLOPT_POST, 1);// set post data to true
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $aPostFields);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$sJson = curl_exec($ch);
|
||||
curl_close ($ch);
|
||||
|
||||
var_dump($sJson);
|
||||
return $sJson;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user