Does Outlook.com support EWS?

五迷三道 提交于 2019-12-25 01:49:41

问题


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.


回答1:


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




回答2:


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




回答3:


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.




回答4:


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



来源:https://stackoverflow.com/questions/17609863/does-outlook-com-support-ews

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!