我如何为我自己的公司电子邮件交换获取 Outlook 空闲/忙碌的休息 api



我使用Microsoft outlook作为客户端来查看我的邮件。

如何获取日历的特定用户忙/闲详细信息的详细信息?

我如何查看其余的 api?

我已经看过这方面的 C# 代码并检查过.

仅通过 EWS 从具有"忙/闲时间、主题、位置"权限级别的同事那里获取约会

但是我需要 REST API 来解决这个问题.我已经检查过了。

https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#FindMeetingTimes

如何在我的情况下实现它?

如果需要更多信息,请告诉我。

任何提示赞赏.谢谢

好的,

我终于解决了这个问题.

让我告诉你如何做到这一点.

为此,您需要做的两件事是。

1( 您的交换服务器网址

你可以通过这种方法得到它。对于交换服务器网址,信用归此网址。

https://support.neuxpower.com/hc/en-us/articles/202482832-Determining-the-Exchange-Web-Services-EWS-URL

我也在添加步骤

2. Use Microsoft Outlook (2007 and later) that connects to the same Exchange EWS Connector.
Hold the Ctrl key and right click on the Outlook Icon in the system tray
Select “Test E-mail Auto Configuration” from the menu
Type in an email address located on the desired Exchange server
Click Test
The URL is listed as 'Availability Service URL'

在你有网址后,这样做.

2( 发送开机自检文本\xml请求

网址 https://--your-exchange-url--/EWS/Exchange.asmx

以及此处的 XML 正文

https://msdn.microsoft.com/en-us/library/office/aa564001(v=exchg.150(.aspx

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
  <soap:Body>
    <GetUserAvailabilityRequest xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
                xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
      <t:TimeZone xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
        <Bias>480</Bias>
        <StandardTime>
          <Bias>0</Bias>
          <Time>02:00:00</Time>
          <DayOrder>5</DayOrder>
          <Month>10</Month>
          <DayOfWeek>Sunday</DayOfWeek>
        </StandardTime>
        <DaylightTime>
          <Bias>-60</Bias>
          <Time>02:00:00</Time>
          <DayOrder>1</DayOrder>
          <Month>4</Month>
          <DayOfWeek>Sunday</DayOfWeek>
        </DaylightTime>
      </t:TimeZone>
      <MailboxDataArray>
        <t:MailboxData>
          <t:Email>
            <t:Address>user1@example.com</t:Address>
          </t:Email>
          <t:AttendeeType>Required</t:AttendeeType>
          <t:ExcludeConflicts>false</t:ExcludeConflicts>
        </t:MailboxData>
        <t:MailboxData>
          <t:Email>
            <t:Address>user2@example.com</t:Address>
          </t:Email>
          <t:AttendeeType>Required</t:AttendeeType>
          <t:ExcludeConflicts>false</t:ExcludeConflicts>
        </t:MailboxData>
      </MailboxDataArray>
      <t:FreeBusyViewOptions>
        <t:TimeWindow>
          <t:StartTime>2006-10-16T00:00:00</t:StartTime>
          <t:EndTime>2006-10-16T23:59:59</t:EndTime>
        </t:TimeWindow>
        <t:MergedFreeBusyIntervalInMinutes>60</t:MergedFreeBusyIntervalInMinutes>
        <t:RequestedView>DetailedMerged</t:RequestedView>
      </t:FreeBusyViewOptions>
    </GetUserAvailabilityRequest>
  </soap:Body>
</soap:Envelope>

希望这也对你有用.

如果有任何问题 ping 我.我喜欢分享。

最新更新