File: /www/exchange0old/cmws/samples/client-people-delete.php
<?php
/* required includes */
require_once("../../exchange/Bin/constants.php");
require_once("../../exchange/Bin/init.php");
require_once(ROOT_FOLDER."Bin/Security.php");
require_once(ROOT_FOLDER."admin/classes/Model/base_actions.php");
require_once(ROOT_FOLDER."admin/classes/Model/CMSync.php");
/* SAMPLE DATA FOR PEOPLE DELETE */
$peopleArray = array("exchange_ref_id" => "1220700004578");
$cmSync = new CMSync();
if (!$cmSync->cmSyncPeopleEnable) {
exit;
}
/* Test Deleting People */
$stat = $cmSync->doDeletePeople($peopleArray["exchange_ref_id"]);
if ($stat) {
$cmSync->printResponse();
} else {
echo $cmSync->getErrorMessage();
}