I want to get the busy slots of a user based on his google calendar.
calendar.freebusy.query({
resource: {
timeMin: startTime,
timeMax: endTime,
timeZone: timeZone,
items: [{ id: userEmail }],
},
})
userEmail: The user whose busy slots I want to find out. But, After using this function, Getting the error:
[ { domain: 'global', reason: 'notFound' } ]
Note: I have used some another email ID for the configuration of google calendar OAuth.
Kindly help me to solve this issue.