This depends on the client library you are using -- but the basic idea would be to retrieve events for the day you're concerned with, ordered by starttime and build up a local data structure to determine available slots.
There is sample code in the Java library (at sample/calendar/CalendarClient.java) which shows how you to retrieve events for a particular date range (the method is sendDateRangeQuery). If you specify the start time and end time, recurrence syntax is automatically expanded into gd:when elements so you don't have to deal with parsing the icalendar-formatted syntax. You also probably only need access to the 'free-busy' projection for each user if they can grant that to you. If you don't know what user it's going to be, you can use AuthSub authentication in a web app to authenticate the user and access their calendar. You're welcome to post any specific questions to the groups. Best of luck, -Ryan On Jan 5, 3:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
I need to create an app that will scan the calendar of the user for a particular day and find the free timeslots within the day. The minimum period of the free time slot will be specified. Can someone guide me to how this can be done using the libraries? Any recommendations would also really help..
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
