Skip to content

Instantly share code, notes, and snippets.

@MilanKaur-01
Last active February 6, 2023 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MilanKaur-01/e36cdecd8c6c0235cb317f8c9a48ef8f to your computer and use it in GitHub Desktop.
Save MilanKaur-01/e36cdecd8c6c0235cb317f8c9a48ef8f to your computer and use it in GitHub Desktop.
const newMeeting = `/users/${userId}/calendar/events`;
const event = {
subject: 'Customer Service Meeting',
start: {
dateTime: startTime,
timeZone: 'UTC'
},
end: {
dateTime: endTime,
timeZone: 'UTC'
},
isOnlineMeeting: true
};
const newEvent = await appGraphClient.api(newMeeting).post(event);
return newEvent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment