v1.9.0
New Features
- Add support for Event conferencing
- Add support for Account deletion
Deprecated
- MicrosoftExchangeProviderSettings easServerHost in favor of exchangeServerHost
Using New Features
Event Conferencing
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:
public class NylasExamples {
public static void getEventExample() throws IOException, RequestFailedException {
NylasClient nylas = new NylasClient();
NylasAccount account = nylas.account("{ACCESS_TOKEN}");
// Get an event object with conferencing details
Event event = account.events().get("{EVENT_ID}");
// Parse the conferencing data
Event.Conferencing conferencing = event.getConferencing();
String conferencingProvider = conferencing.getProvider();
Event.Conferencing.Details details = conferencing.details();
String meetingCode = details.getMeetingCode();
String password = details.getPassword();
String pin = details.getPin();
String url = details.getUrl();
List<String> phone = details.getPhone();
}
}You can also build a new event that includes conferencing details with the SDK:
public class NylasExamples {
public static void postEventExample() throws IOException, RequestFailedException {
NylasClient nylas = new NylasClient();
NylasAccount account = nylas.account("{ACCESS_TOKEN}");
// Create a new event object
Event event = new Event("{CALENDAR_ID}", when);
// Add conferencing details
Event.Conferencing conferencing = new Event.Conferencing();
conferencing.setProvider("Zoom Meeting");
Event.Conferencing.Details details = new Event.Conferencing.Details();
details.setMeetingCode("213");
details.setPassword("xyz");
details.setPin("555");
details.setUrl("https://us02web.zoom.us/j/****************");
details.setPhone(Collections.singletonList("+11234567890"));
conferencing.setDetails(details);
event.setConferencing(conferencing);
}
}