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.outlook.fetchers.OutlookClient;
OutlookClient mClient;
...
mClient = new OutlookClient(outlookBaseUrl, mResolver);
final List<Event> events = mClient
.getMe()
//.getUsers()
//.getById("[email protected]") // This gives me back 403 :(
.getCalendarView()
.addParameter("startDateTime", startDate)
.addParameter("endDateTime", endDate)
.read()
(see here).
Question now is:
- How can I use OutlookClient to add a booking?
( POST https://outlook.office.com/api/v2.0/me/calendars/{calendar_id}/events - from documentation)
- What about deleting a calendar event instead?
( DELETE https://outlook.office.com/api/v2.0/me/events/{event_id} - from documentation )
Thanks