Skip to content Skip to sidebar Skip to footer

Unable To Retrieve Calendar Data From Freebusy Query

I'm trying to get the busy free times from my calendar. Here is my code: var freeRequest = gapi.client.calendar.freebusy.query({ timeMin: (new Date(2016, 3, 1)).toISOString(),

Solution 1:

Add items to your request like this:

var freeRequest = gapi.client.calendar.freebusy.query({
    items: [
      {id: "calendar id"}
    ],
    timeMin: (newDate(2016, 3, 1)).toISOString(),
    timeMax: (newDate(2016, 3, 30)).toISOString()
});

The calendar id can be found like this.

Post a Comment for "Unable To Retrieve Calendar Data From Freebusy Query"