nmarus / node-ews

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

Getting a email #143

Open RafalNowackiXB opened 3 years ago

RafalNowackiXB commented 3 years ago

Hello how can i get an email if i have a:

  1. Auth token
  2. ID of mail from outlook

I have done this in Java using other lib.

image

Now i want to do this in nodejs using this lib :)

RafalNowackiXB commented 3 years ago

im trying to do: image

But i dont known why i get: image

RafalNowackiXB commented 3 years ago

thos error is solved (im was passing undefined as token) but i got second.

(node:19) UnhandledPromiseRejectionWarning: Error: Invalid or malformed wsdl file: /tmp/tmp-19GjJa1cZki3Xp/services.wsdl
    at /usr/src/app/node_modules/node-ews/lib/ews.js:126:20
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:73:3)

What im doing wrong now?