我正在使用Outlook-SDK-Android ( MS ) 与Outlook Calendar REST API交谈。
到目前为止,我已经能够使用以下方法从我的日历中获取事件:
import com.microsoft.services.outlook.fetchers.OutlookClient;
OutlookClient mClient;
...
mClient = new OutlookClient(outlookBaseUrl, mResolver);
final List<Event> events = mClient
.getMe()
//.getUsers()
//.getById("meetingRoom@company.com") // This gives me back 403 :(
.getCalendarView()
.addParameter("startDateTime", startDate)
.addParameter("endDateTime", endDate)
.read()
(见这里)。
现在的问题是:
- 如何使用 OutlookClient 添加预订?
(发布 https://outlook.office.com/api/v2.0/me/calendars/{calendar_id}/events - 来自文档)
- 那么删除日历事件呢?
(删除 https://outlook.office.com/api/v2.0/me/events/{event_id} - 来自文档)
谢谢