getLoginAccountId(). "
";
/*
echo "
Get Login Account
";
$result = $ogo->getLoginAccount(65535);
print_r($result);
echo "
Get Object
";
$result = $ogo->getObject(491010, 65535);
print_r($result);
echo "
Get Objects
";
$result = $ogo->getObjects(array(10160, 491010), 65535);
print_r($result);
echo "
Create Task
";
$task = array();
$task['entityName'] = 'Task';
$task['name'] = 'New ZOGI/PHP Task 5';
$task['executantObjectId'] = 10160;
$task['objectId'] = '0';
$task['keywords'] = 'ZOGI';
$task['comment'] = 'COMMENT COMMENT COMMENT';
$task['priority'] = 2;
$task['startDate'] = '2006-12-31';
$task['endDate'] = '2007-01-25';
$task['sensitivity'] = 2;
$task['totalWork'] = 75;
$task['percentComplete'] = 40;
$task['notify'] = 1;
$task['kilometers'] = 34;
$task['accountingInfo'] = 'Accounting Info';
$task['actualWork'] = 23;
$task = $ogo->putObject($task);
print_r($task);
echo "
Update Task
";
$task['name'] = 'Updated ZOGI/PHP Task 5';
$task = $ogo->putObject($task);
print_r($task);
echo "
Accept a task
";
$notation = array();
$notation['entityName'] = 'taskNotation';
$notation['taskObjectId'] = $task['objectId'];
$notation['comment'] = 'Perform accept';
$notation['action'] = 'accept';
print_r($ogo->putObject($notation));
echo "
Comment a task
";
$notation = array();
$notation['entityName'] = 'taskNotation';
$notation['taskObjectId'] = $task['objectId'];
$notation['comment'] = 'Comment';
$notation['action'] = 'comment';
print_r($ogo->putObject($notation));
echo "
Done a task
";
$notation = array();
$notation['entityName'] = 'taskNotation';
$notation['taskObjectId'] = $task['objectId'];
$notation['comment'] = 'It is done';
$notation['action'] = 'done';
print_r($ogo->putObject($notation));
echo "
Archive a task
";
$notation = array();
$notation['entityName'] = 'taskNotation';
$notation['taskObjectId'] = $task['objectId'];
$notation['comment'] = 'Archive';
$notation['action'] = 'archive';
print_r($ogo->putObject($notation));
echo "
Get appointments
";
$criteria = array();
$criteria['startDate'] = '2006-01-01';
$criteria['endDate'] = '2007-12-31';
print_r($ogo->searchForObjects('Appointment', $criteria, 65535));
echo "
Get to-do list
";
print_r($ogo->searchForObjects('Task', 'todo' ,65535));
*/
?>