Last active
February 6, 2023 05:48
-
-
Save MilanKaur-01/e36cdecd8c6c0235cb317f8c9a48ef8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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