APD Toronto
asked on
Google Calendar API, Free Slots
Hi Experts,
With the Google Calendar API, is there a way to get free 90min time slots that are available M-F 9:00-16:30 within a given week?
I was thinking the freebusy method, but I think that's for something else?
If there's no method, then is there a way to get all events for a given week, or do I need to keep getting events, until I see I'm past the week?
Using the events, in order for me to get the 90min time slots, I was thinking to loop through all events and see if there's a 90min difference between the END of one event and the START of the next, and that the time is <= 15:00 (16:30 - 90 = 15:00).
Am I over-complicating, or is this the only way?
With the Google Calendar API, is there a way to get free 90min time slots that are available M-F 9:00-16:30 within a given week?
I was thinking the freebusy method, but I think that's for something else?
If there's no method, then is there a way to get all events for a given week, or do I need to keep getting events, until I see I'm past the week?
Using the events, in order for me to get the 90min time slots, I was thinking to loop through all events and see if there's a 90min difference between the END of one event and the START of the next, and that the time is <= 15:00 (16:30 - 90 = 15:00).
Am I over-complicating, or is this the only way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER