如何使用Microsoft Graph API显示当前可用会议室的列表 [英] How to display a list of available meeting rooms at present using Microsoft Graph API

查看:208
本文介绍了如何使用Microsoft Graph API显示当前可用会议室的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用Microsoft Graph API.我这里有个情况.我已经为一些会议室分配了电子邮件ID,并且想知道所有会议室的可用性. 如果当前有会议室,我应该得到会议室的名称,并在可能的情况下得到会议室的持续时间. 我想知道如何查询多个房间并返回数据.

I have been trying to play around with the Microsoft Graph API. I have a situation here. I have assigned some meeting rooms with an email ID and want to know the availability of all. If the rooms are available currently , I should get the name of the meeting room and if possible , the duration for which the room is available. I want to know how to query multiple rooms and return the data.

对以下API有点困惑,对您有帮助吗?

A bit confused about the following APIs, would these help ?

https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_findmeetingtimes

GET https://graph.microsoft.com/beta/me/calendar

推荐答案

我为一些会议室分配了电子邮件ID,想知道所有会议室的可用性.

I have assigned some meeting rooms with an email ID and want to know the availability of all.

findMeetingTimes API应该适合您的情况.对于分配的会议室,您可以在

The findMeetingTimes API should suit your scenario. For the assigned meeting rooms, you can list them inside locationConstraint parameter of request body, for the assigned attendee email ID, you can add it to attendees parameter of request body. Then the response of this API will return a list of meeting time suggestions based on the meeting rooms are available and all attendees are available. And the the names of rooms available are listed on "locations" of every suggestion.

您可以使用文档中的示例测试此API.我的测试结果:

You can test this API with the example inside the document. My testing result:

更新:

请注意检查使用此API的文档内部的权限.首先,该帐户应为公司帐户或学校帐户,不支持个人Microsoft帐户.其次,您需要具有Calendars.Read.SharedCalendars.ReadWrite.Shared权限.

Pay attention that check the permissions inside the document for using this API. Firstly, the account should be work or school account, personal Microsoft account is not supported. Secondly,you need to have Calendars.Read.Shared, Calendars.ReadWrite.Shared permissions.

这篇关于如何使用Microsoft Graph API显示当前可用会议室的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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