通过API共享Outlook日历通过API
问题描述:
我需要通过API以编程方式与另一个Outlook用户共享用户的主要Microsoft Outlook日历。通过API共享Outlook日历通过API
我设法将Oauth2授权与正确的范围(wl.calendars_update
)集成以访问日历。
基于Outlook Calendar REST API reference,我可以成功地从https://outlook.office.com/api/v2.0/me/calendars
检索用户的日历。但我们想要的是通过API共享日历。这可能吗?
为了进行比较,谷歌是通过ACL s来完成的。而共享所需的代码是这样的如下:
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 introduces new unified Outlook APIs for Outlook.com & Office 365 => 2015年8月12日
- Provide REST API support for outlook.com =>微软的答案:2016年7月22日
我需要这个功能,我已经在Microsoft UserVoice上写了一个功能请求:Allow to modify calendars share/ACL/permissions using Outlook.com REST API
22票:D – tsm