Reputation: 1759
I want to create a web application, using html and JS, and I will be accessing EWS managed API. So can we access EWS API via javascript or any other language? If yes how to do so?
Upvotes: 4
Views: 7101
Reputation: 1138
If anyone still looking for JavaScript version, I am author of ews-javascript-api
at https://github.com/gautamsi/ews-javascript-api, this is functional and have many operations supported. mostly most common calls. open issue at GitHub for anything not implemented I usually take next weekend to publish that feature in npm if not complex.
Published as npm ews-javascript-api
Due to Exchange CAS server CORS limitation (HTTP OPTIONS verb not implemented) you can not use it in browser. Node.js works fine. You can also use it in Electron (Atom Shell) or in NW.JS (Node-WebKit)
Support Office 365 and on-prem Exchange, all version supported by ews-managed-api (official repo).
Supported Authentication mechanism:
Upvotes: 21
Reputation: 3297
The EWS Managed API is a .NET wrapper around the EWS API (SOAP and POX Web Services).
If you're using a .NET language such as C# then you should use the EWS Managed API on the server-side and create your own JSON services (I recommend ASP.NET Web API) for your client-side JavaScript to call.
If you're only using JavaScript, you may be able to use node-soap to call the EWS SOAP services.
Upvotes: 0