gpt4 book ai didi

outlook - 通过 API 共享 Outlook 日历

转载 作者:行者123 更新时间:2023-12-02 01:19:40 25 4
gpt4 key购买 nike

我需要通过 API 以编程方式与另一个 Outlook 用户共享我的用户的主要 Microsoft Outlook 日历。

我设法将 Oauth2 授权与正确的范围 (wl.calendars_update) 集成以访问日历。

基于Outlook Calendar REST API reference我可以从 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 上写了一个功能请求:Allow to modify calendars share/ACL/permissions using Outlook.com REST API

关于outlook - 通过 API 共享 Outlook 日历,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40907899/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com