nmarus / node-ews

A simple JSON wrapper for the Exchange Web Services (EWS) SOAP API.
MIT License
116 stars 52 forks source link

How to use EWS Autodiscover? #80

Closed piavgh closed 6 years ago

piavgh commented 6 years ago

Hi everyone,

I'm working with a client that provided me only username/password of their Exchange account. They said that I can use the autodiscover functionality https://msdn.microsoft.com/en-us/library/office/jj900169(v=exchg.150).aspx to get the correct url.

How can I do that with this repository?

Thank you

kcastrotech commented 6 years ago

The answer you seek is in the link you provided. This package doesn't automatically determine the URL based on username/email so you'll need to develop your own function/process to make that determination before calling Node-EWS.

However, that is a good idea for a feature enhancement.

piavgh commented 6 years ago

Thank you. I used this repository https://github.com/EmilTholin/node-exchange-autodiscover to do that purpose.