I am trying to integrate Google calendar with Node JS and create events, which is working all fine, but then once I try to add conferenceData it gives me 400, I am not sure what is wrong here, any help would be greatly appreciated.
{
summary: 'Coding class',
location: 'Virtual / Google Meet',
description: 'Learn how to code with Javascript',
start: {
dateTime: new Date().toISOString(),
timeZone: 'Asia/Calcutta',
},
end: {
dateTime: new Date(new Date().setHours(new Date().getHours() + 1)).toISOString(),
timeZone: 'Asia/Calcutta',
},
reminders: {
useDefault: false,
overrides: [
{ method: 'email', 'minutes': 24 * 60 },
{ method: 'popup', 'minutes': 10 },
],
},
conferenceData: {
createRequest: {
conferenceSolutionKey: {
type: 'hangoutsMeet',
},
requestId: new Date().getTime()
}
},
};
const response = await calendar.events.insert({
calendarId: 'primary',
resource: event,
conferenceDataVersion: 1
});
I have tried hangoutsMeet
& googleMeet
but no luck.
4