Zimbra Calendar SOAP API to retrieve calendars by start date and end date

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
VistoPartner
Posts: 16
Joined: Fri Sep 12, 2014 11:56 pm

Zimbra Calendar SOAP API to retrieve calendars by start date and end date

Postby VistoPartner » Mon Apr 27, 2009 8:03 pm

Hi all,
I was trying to retrieve all the appointments that are present between any given start date and end date. I looked at the GetApoointmnetRequest API, and looks like it doesn't take any start and end dates.
Is there any way I can retrieve appointments between given start and end dates? Any other APIs or tweaks?
Thanks,

- VistoPartner.


acajaja
Posts: 5
Joined: Sat Sep 13, 2014 1:17 am

Zimbra Calendar SOAP API to retrieve calendars by start date and end date

Postby acajaja » Thu Jul 22, 2010 3:21 pm

Wow Zimbra folks! Well over a year with no resonses. Tisk ,tisk!
I'll attempt to answer.
Via SOAP (whatever language you're using, I'm using PHP) and after you authorize, you must send your request to
GetAppointmentRequest">http://your.zimbra.domain/service/soap
GetAppointmentRequest
is only for getting an actual appointment (I think). Zimbra uses appointments as a container. If there are no recurring instances, then it's just the appointment ID you need.
If you have recurring instances, then thay are contained within the first appointment in the series and you have to use the SearchRequest API. Specify your namespace as urn:zimbraMail and set AT LEAST the following params:
types = appointment

calExpandInstStart = time in milliseconds

calExpandInstEnd = time in milliseconds

inid = your calendar ID #
You can also set the limit, which seems to limit the overall appointments (not instances).
This wokred for me in the context of a form where the user can select from a list of available times to book an appointment. My script queries the calendar, which is pre-populated with recurring instances, and gets the free slots to put in the list (GetFreeBusy API DOES NOT work for this, which is why I did it my way). I had to manually do a chronological sort on the result because the sort param didn't work.
Hope this helps.
HEY ZIMBRA, WRITE A REAL API WOULD YOU!!!!!! CHECK OUT THE ZEND FRAMEWORK API DOCS TO SEE WHAT A GOOD ONE LOOKS LIKE.

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 2 guests