使用O365 REST API访问共享日历 [英] Accessing shared calendar using the O365 REST API

查看:486
本文介绍了使用O365 REST API访问共享日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读以前问过的问题 Office 365共享日历

I was reading question asked previously Office 365 shared calendars

使用Oauth进行身份验证访问经过身份验证的用户的共享日历的选项现在可用吗?

Is the options to access shared calendars of authenticated user using Oauth to authenticate available now ?

基本上,我正在尝试使用"OAuth2客户端凭据流"来实现服务,但是仅当日历与特定用户使用rest api调用共享时,我才想访问日历: https://outlook.office365.com/api/v1.0/Users/"+ emailId +"/calendargroups/"+"其他日历的组ID"+"/calendars/{共享日历的calendar_id}.

Basically I am trying to implement a service using "OAuth2 client credential flow", but I want to access a calendar only if it is shared with a particular user using rest api call: https://outlook.office365.com/api/v1.0/Users/"+emailId+"/calendargroups/"+"group id of Other Calendars"+"/calendars/{calendar_id of shared calendar}.

推荐答案

更新:现在支持此功能.有新的作用域可以启用此功能.例如,如果以前使用Calendar.Read,则可以使用Calendar.Read.Shared启用共享日历的读取.

UPDATE: This is now supported. There are new scopes to enable this. For example, if you used Calendar.Read before, you would use Calendar.Read.Shared to enable reading of shared calendars.

这篇关于使用O365 REST API访问共享日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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