apppointment.fetch/PHP
Adam Tauno WIlliams <[email protected]>
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Organization | Morrison Industries |
| Message-ID | <[email protected]> |
I've gotten fetch to work for tasks, accounts, etc... but can't seem to
get appointments.fetch to work; I'm curious if I'm encoding the dates
wrong, or making some other stupid mistake.
A simple example -
#!/usr/bin/php -c /home/awilliam/workspace/pogi
<?PHP
require_once("XML/RPC.php");
$client = new XML_RPC_Client('/RPC2',
'kohocton',
80);
$client->setCredentials('adam', '*******');
$fSpec['qualifier']['startDate']
= new XML_RPC_Value(
XML_RPC_iso8601_encode(mktime(0, 0, 0, 12, 31, 2003)),
'dateTime.iso8601');
$fSpec['qualifier']['endDate']
= new XML_RPC_Value(
XML_RPC_iso8601_encode(mktime(0, 0, 0, 12, 31, 2004)),
'dateTime.iso8601');
$params = new XML_RPC_Value($fSpec, 'struct');
$message = new XML_RPC_Message('appointment.fetch', $params);
$response = $client->send($message);
print_r($response);
?>
- returns -
xml_rpc_response Object
(
[xv] => xml_rpc_value Object
(
[me] => Array
(
[array] => Array
(
)
)
[mytype] => 2
)
[fn] =>
[fs] =>
[hdrs] => Array
(
[0] => T
)
)
- empty.
--
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc