File: /www/exchange2/cmws/samples/client-people-list.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 searching People */
$searchArray = array("filter_data" => array(
"people_name" => "test"));
$cmSync = new CMSync();
/* Test Listing People */
$cmSync->setSearchData($searchArray, CM_SYNC_PEOPLE);
$stat = $cmSync->doSearch(CM_SYNC_PEOPLE_LIST);
if ($stat) {
$cmSync->printResponse();
} else {
echo $cmSync->getErrorMessage();
}