Re: Appointments
Adam Tauno Williams <[email protected]> Mon, 06 Mar 2006 13:28:32 -0500
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
> i worder if there is a more uptodate xml-rpc api decription than the one that can be found at "http://docs.opengroupware.org/Members/bjoern/xml-rpc-de.pdf" which is version 4.1.
No, but ask specific questions and I'll be happy to answer. That
document isn't so great, but with time you realize it is better than
you might think (how is that for cryptic! :) I'm the author of POGI
(PHP for OGo) and MOGI (Mono/.NET for OGo), so I've become pretty
familiar with the API.
> i tried to insert an appointment, but in this description there are no hints to the appointment types and how they are defined.
> i also miss an attribute for a title or name of the appointment.
In C# I initialize a new appointment document like -
appointment = new XmlRpcStruct();
appointment.Add("startDate", DateTime.Now);
appointment.Add("endDate", DateTime.Now.AddHours(1));
appointment.Add("title", "");
appointment.Add("comment", "");
appointment.Add("location", "");
appointment.Add("cycleEndDate", DateTime.Now.AddDays(30));
appointment.Add("aptType", "meeting");
aptType is a string like: "birthday", "phone call", "duedate",
"vacation", "at home", "ill", "meeting", "all types", "outward",
"tradeshow". Those are the defaults, you can define more; there is
information in the docs plone.
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEDH9QLRePpNle04MRAsLmAJ9uC8js4I5hzYeBGUMM0mWlfnIGawCdHUgj Hmnzdk9v5aIViwRPwqkmndQ= =Qn5C -----END PGP SIGNATURE-----