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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -