访问共享日历(例如通过 Office 365 REST API 访问会议室) [英] Access a shared calendar (such as a meeting room via Office 365 REST API)

查看:29
本文介绍了访问共享日历(例如通过 Office 365 REST API 访问会议室)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Office 365 REST api 访问我帐户的日历.我想访问我的帐户有权访问的所有日历,尤其是出现在我的 Office 365 界面其他日历"部分中的会议室日历.

I'm using the Office 365 REST api to access my account's calendars. I'd like to access all the calendars my account has access to, in particular the meeting rooms calendars appearing in the "Other calendars" section in my Office 365 interface.

现在,如果我查询https://outlook.office365.com/api/v1.0/me/calendars"端点,我只得到了我拥有的日历,而不是会议室日历.

For now, if I query the "https://outlook.office365.com/api/v1.0/me/calendars" endpoint, I only got the calendars I own, not the meeting rooms calendars.

有关如何获取它们的任何线索(通过 Office 365 REST API)?

Any clue on how to get them (via Office 365 REST API) ?

推荐答案

当以用户身份登录时,REST API 不支持访问其他用户的日历.您可以使用 客户端凭据模型 授予应用访问组织中所有日历的权限,并以这种方式访问​​它们.

The REST API doesn't support access to other user's calendars when logging in as a user. You can use the client credentials model to grant the app access to all calendars in the organization and access them that way.

这篇关于访问共享日历(例如通过 Office 365 REST API 访问会议室)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆