我正在使用Outlook-SDK-Android(MS)與對話。使用OutlookClient和Outlook日曆API POST和刪除預訂
到目前爲止,我已經能夠使用到從我的日曆事件:
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()
(見here)。
現在的問題是:
- 我如何使用OutlookClient添加預訂?
(POSThttps://outlook.office.com/api/v2.0/me/calendars/{calendar_id}/events - 從documentation)
- 怎麼樣刪除日曆事件呢?
(DELETEhttps://outlook.office.com/api/v2.0/me/events/{event_id} - 從documentation)
感謝