Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-27-2009, 06:03 PM
Intermediate Member
 
Posts: 16
Default Zimbra Calendar SOAP API to retrieve calendars by start date and end date

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.
Reply With Quote
  #2 (permalink)  
Old 07-22-2010, 01:21 PM
Junior Member
 
Posts: 5
Default

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 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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.