簡體   English   中英

通過API共享Outlook日歷

[英]Share Outlook Calendar via API

我需要通過API以編程方式與另一個Outlook用戶共享我的用戶的主要microsoft outlook日歷。

我設法將Oauth2授權與正確的范圍( wl.calendars_update )集成以訪問日歷。

基於Outlook Calendar REST API參考,我可以從https://outlook.office.com/api/v2.0/me/calendars成功檢索用戶的日歷。 但我們想要的是通過API共享日歷。 這可能嗎?

為了比較谷歌通過ACL做到這一點。 分享所需的代碼如下所示:

const headers = { Authorization: `Bearer ${req.pre.user.microsoftAccessToken}` };
    const params = { scope: { type: 'user', value: google.calendar.mail }, role: 'freeBusyReader' };

    return rp.post(`${google.calendar.apiUrl}/primary/acl`, { json: true, body: params, headers })
      .then(() => res({ message: req.i18n.__('shareCalendarSuccess') }))
      .catch(err => res(normalizeErr(err)));

我認為現在是不可能的。

Outlook.com REST API似乎是最近的:

我也需要這個功能,我在Microsoft UserVoice上寫了一個功能請求: 允許使用Outlook.com REST API修改日歷共享/ ACL /權限

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM