21 lines
296 B
PHP
21 lines
296 B
PHP
<?php
|
|
|
|
require_once 'SASConnector.php';
|
|
|
|
$api = new SASConnector('172.16.12.108', 'admin', 'admin');
|
|
$api->login();
|
|
|
|
|
|
$res = $api->delete('user/2840');
|
|
|
|
print_r(json_decode($res));
|
|
|
|
|
|
|
|
//this is the expected response
|
|
//stdClass Object
|
|
//(
|
|
// [status] => 200
|
|
//[message] => rsp_user_deleted
|
|
//)
|