Does Outlook.com support EWS?

2019-09-06 12:49发布

Does Outlook.com support EWS? If no, what are the different ways to access a users tasks and calendar using python?

So far I have done the following:

Used EWSWrapper and tried out using suds-ews with python. All these implementation fail when i try with an outlook.com account.

So here is what I want to know:

  • If EWS is not available , what other ways can I do to retrieve task and calendar list .
  • Is there a library in python that I can use which considers, earlier 2007 exchange servers, the newer once from 2010 to 2013 and does basic error handling.

Any help is appreciated.

4条回答
趁早两清
2楼-- · 2019-09-06 12:55

I'm a C#-Developer so I don't know how it works in Python, but EWS Managed API works with ExchangeOnline. I'm already using it. Maybe you have to enable redicreting in the autodiscover. See: http://msdn.microsoft.com/en-us/office365trainingcourse_10l_1_topic2

I tried to connect to Outlook.com with ServerVersion 2010 and 2013-Setting and both work fine.

查看更多
迷人小祖宗
3楼-- · 2019-09-06 13:02

Currently the consumer facing Outlook.com (this is the Hotmail replacement, not to be confused with the Office 365 offering which uses the same root domain name) does NOT support EWS. It only supports EAS.

See this thread: http://answers.microsoft.com/en-us/windowslive/forum/mail-profile/i-want-to-access-outlookcom-account-over-exchange/83971a95-7fb3-483a-96fc-ac7e0299345b?msgId=71d12357-f735-4958-baef-39997b5802c8

查看更多
冷血范
4楼-- · 2019-09-06 13:16

Yes it supports now

Microsoft migrated from the legacy infrastructure to latest Office 365 based infrastructure

Following code snippet in c# will send HelloWorld message via EWS from outlook.com

var service = new ExchangeService
{
    TraceEnabled = true,
    TraceFlags = TraceFlags.All,
    Credentials = new WebCredentials("user@outlook.com", "p@ssw0rd"),
    Url = new Uri("https://outlook.com/EWS/Exchange.asmx")
};

var email = new EmailMessage(service);

email.ToRecipients.Add("recipient@outlook.com");
email.Subject = "HelloWorld";
email.Body = new MessageBody("This is the first email I've sent by using the EWS Managed API.");
email.Send();

For more code samples visit EWS Managed API docs

查看更多
唯我独甜
5楼-- · 2019-09-06 13:21

Outlook.com accounts do not support the EWS exchange service API especially when trying to use the oAuth2 token obtain from live.com.

It is recommended to try and use the REST API. The REST API is currently enabled on all Office 365 accounts that have Exchange Online and some Outlook.com accounts.

You can find more detailed information about it here and here

查看更多
登录 后发表回答