Find free time with google calendar api -
i want check if there free time (without events) in interval of time on google calendar. there freebusy google api, returns array of events dates.
"busy": [ { "start": "2015-10-08t16:00:00+02:00", "end": "2015-10-08t20:00:00+02:00" }, { "start": "2015-10-09t15:00:00+02:00", "end": "2015-10-09t16:00:00+02:00" }, ]
is there simple way 'true/false' information free time (some feature google api)? if no, maybe know easy way manually iterate "busy" array , check if there empty space between events.
freebusy.query supports timemin
, timemax
values. set 2 values encompass timeslot interested in , if response returns 0 events in timeslot have answer of free time.
{ "timemin": datetime, "timemax": datetime, }
Comments
Post a Comment