Skip to content Skip to sidebar Skip to footer

Post And Delete A Booking Using Outlookclient And Outlook Calendar Api

I'm using Outlook-SDK-Android (MS) to talk with Outlook Calendar REST API. So far I've been able to get the events from my calendar using: import com.microsoft.services.out

Solution 1:

Thanks to the hints received from one of the Outlook SDK Android authors (Marcos Torres - Microsoft Venezuela), it simply is:

Create event​:

Event addedEvent = client.getMe()
                         .getCalendars().getById("Calendar").getEvents().add(event).get();

Delete event​:

client.getMe().getEvents().getById(addedEvent.getId()).delete().get();

See e2e test.

Worth bear in mind though that "We're not maintaining the SDK anymore. By the way, by early April (Build Conference) a new SDK will be released. While may not be covering all the Outlook API surface now, it will be in the future."

And also "Keep in mind the SDK was code-generated from the endpoint-metadata. If by any chance the metadata (hence the service) change, the SDK won't work."

Post a Comment for "Post And Delete A Booking Using Outlookclient And Outlook Calendar Api"