Link to home
Start Free TrialLog in
Avatar of APD Toronto
APD TorontoFlag for Canada

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?
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of APD Toronto

ASKER

Thank you Chris!