如何获得我自己公司的电子邮件交换的Outlook Free/Busy Rest API? [英] How can i get the outlook free / busy rest api for my own company email exchange?

查看:89
本文介绍了如何获得我自己公司的电子邮件交换的Outlook Free/Busy Rest API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Microsoft Outlook作为客户端来查看我的邮件.

I use Microsoft outlook as a client to view my mail .

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

How can i get the detail for particular user free / busy detail of calendar ?

我如何看到其余的api?

How can i see the rest api for this ?

我已经看到了C#代码并检查了该代码.

I have seen C# code for this and has checked that .

从中获取约会通过EWS获得的同事只有有空/忙碌时间,主题,位置"权限级别

但是我需要REST api.我已经检查过了.

But i need REST api for this . I have checked this.

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

我该如何实现呢?

让我知道是否需要更多信息.

Let me know if more information need .

任何提示表示赞赏.谢谢

Any hint appreciated . Thanks

推荐答案

好吧,我终于解决了这个问题.

Ok finally I have solved this issue .

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

Let me tell you how you can do so .

您需要做的两件事是

1)您的交换服务器网址

您可以通过这种方法来实现. 对于交换服务器url,功劳将转到该URL.

You can get that by this approach . For exchange server url , credit goes to this URL .

https ://support.neuxpower.com/hc/en-us/articles/202482832-确定-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'

输入网址后,执行此操作.

After you have url do this .

2)发送POST文本\ xml请求

url https://-您的交换网址-/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通我.我喜欢分享.

If any issue ping me . I love to share.

这篇关于如何获得我自己公司的电子邮件交换的Outlook Free/Busy Rest API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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