EWS Managed api in JavaScript fo Ionic and Electron
npm install ews-js-api-browserews-js-api-browser
==================
ews-javascript-api@0.15.3
ews-javascript-api@0.15.3
ews-javascript-api@0.9.5 (use @0.2.0 or @next tag)
npm install ews-js-api-browser
npm install -g typescript
tsc or npm run build from command prompt
npm run build:outlook (windows only) to build for Outlook Add-in/Mail apps.
ionic serve will have CORS issue, You want to test in emulator directly. You can also enable CORS in Chrome (chrome based browsers) by installing plugin from chrome web store Allow-Control-Allow-Origin: *
<--- Last few GCs --->
[107880:000002A361520F20] 16262 ms: Mark-sweep 1393.6 (1448.1) -> 1393.5 (1415.1) MB, 280.1 / 0.0 ms last resort
[107880:000002A361520F20] 16472 ms: Mark-sweep 1393.5 (1415.1) -> 1393.5 (1415.1) MB, 209.9 / 0.0 ms last resort
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 000000E5FE6A66A1
1: RegExpReplace [native regexp.js:~356] pc=000002C27BC3C9A4
2: 000003B7485C9C21 (aka [Symbol.replace]) [native regexp.js:1]
How to for Outlook Apps
$3
If you are using webpack/requirejs, just install using npm and configure loaders appropriately. dependency needed: base64-js, moment-timezone & uuid. moment is also needed as dependency to moment-timezone.
Follow examples from ews-jsvascript-api
$3
see next section
Working with plain js/ts (no module loaders/bundlers" class="text-primary hover:underline" target="_blank" rel="noopener noreferrer">pc=000002C27C3AD329
you have to copy dist/outlook/ExchangeWebService.js (and dist/outlook/ExchangeWebService.d.ts if you need typing support in typescript) to your project/scripts directory, include ExchangeWebService.js in html file (