This new release of the Nylas Node SDK brings a couple of fixes as well as adding support for Event Conference Sync (Beta).
New Features
Enhancements
- Fix minor issues with Neural API implementation (#257, #258)
- Fix not rejecting uncaught errors during requests (#262, #260)
Using New Features
Conference Sync (Beta)
Event.conference
is now a field that will contain conference details for Events that contain them, and it can be populated when new events through the SDK.
You can read the values like so:
const event = await nylas.events.find("id");
const conferencingProvider = event.conferencing.provider;
const conferenceURL = event.conferencing.details.url;
const conferencePassword = event.conferencing.details.password;
const conferenceMeetingCode = event.conferencing.details.meetingCode;
const conferencePhoneNumbers = event.conferencing.details.phone;
const conferencePin = event.conferencing.details.pin;
You can also build a new event that includes conferencing details with the SDK:
const zoomEvent = nylas.events.build({
...
conferencing: {
provider: "Zoom Meeting",
details: {
url: "https://us02web.zoom.us/j/****************",
meeting_code: "213",
password: "xyz",
phone: [
"+11234567890"
]
}
},
});