ews-js-api-browser | Exchange Web Service in JavaScript/TypeScript

 by   gautamsi TypeScript Version: 0.2.0 License: MIT

kandi X-RAY | ews-js-api-browser Summary

kandi X-RAY | ews-js-api-browser Summary

ews-js-api-browser is a TypeScript library typically used in User Interface, Angular, Electron applications. ews-js-api-browser has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Exchange Web Service in JavaScript/TypeScript. For ionic/electron and other browser process.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ews-js-api-browser has a low active ecosystem.
              It has 14 star(s) with 2 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              ews-js-api-browser has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ews-js-api-browser is 0.2.0

            kandi-Quality Quality

              ews-js-api-browser has no bugs reported.

            kandi-Security Security

              ews-js-api-browser has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              ews-js-api-browser is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ews-js-api-browser releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ews-js-api-browser
            Get all kandi verified functions for this library.

            ews-js-api-browser Key Features

            No Key Features are available at this moment for ews-js-api-browser.

            ews-js-api-browser Examples and Code Snippets

            No Code Snippets are available at this moment for ews-js-api-browser.

            Community Discussions

            QUESTION

            How can I get attachment content from an Outlook mail in a Node.js Outlook add-in?
            Asked 2020-Mar-12 at 08:08

            First of all, being a student, I lack some experience to understand everything about what I tried and what I try. But still, I feel like I've tried pretty much every solution available on the net.

            I'm developing a Yeoman based Outlook add-in (full javascript with Node.js) for my company, and I came to the point where I need to get the attachments from a mail, not just the informations like size, file type or name of the attachments, I need the full content, in base64 if possible (in order to produce a .eml file containing the mail body and attached files).

            I've found multiple ways to do so, problem is none of them work :

            • first I tried with the messy microsoft documentation, and the first solution that I found is this one : https://docs.microsoft.com/en-us/office/dev/add-ins/outlook/get-attachments-of-an-outlook-item, problem is that with this solution I need to make use of c#, but my add-in is full js, and I need to find a solution that works with JS and Node.js
            • then I looked for a solution that allows me to communicate a way or another with the Exchange Server to get the attachments content, and I found this : https://github.com/gautamsi/ews-javascript-api, but this was not working with browser oriented add-in (and I need my add-in to work on both client and browsers), so I made use of this : https://github.com/gautamsi/ews-js-api-browser. I found some code samples in the first link and here : Save outlook Email attachment using ews-javascript-api npm in node JS that helped me build something (using the second link's example's syntax on the third link's sample code) that was supposed to work, but coming to the point where I'm trying to get the attachments from the mail, I get a lot of informations from the attachment, but anything related to it's content is null, and the next step where I "Load" the file returns an error 500 from the "service" with "the document is empty", and I still don't know why yet.
            • finally, I tried to take a step back, looking on google for office api and how to get attachment content, and I've found this link : https://blog.mastykarz.nl/office-365-unified-api-mail/ that almost looked to good to be true, and I was right : according to microsoft doc, I need a token in order to make work the office 365 api url, token given by Azure AD when an administrator authorizes you to obtain it (or so do I think, this is the part where the microsoft doc is the messier). Problem is, while connecting on Azure AD, I get an error displaying on the screen from the website (absolutely no details about the error), and some places that I need to access in order to get my token just wont work, displaying another error message without any details or just never loading.

            I've reduced as much as possible the size of my question, not wanting to drown you under informations, sample codes, links and pics so, sorry if it may look both too long and too poor in details.

            Thank you for your time, feel free to give any solution, suggestion or advice that come to your mind !

            ...

            ANSWER

            Answered 2020-Mar-12 at 08:08

            doing the same thing, solution I found:

            • Get exchangeToken in client (Office.context.mailbox.getCallbackTokenAsync())
            • Send token, attachmentsIds, emailID to server (C# in my case, nodejs in your case)
            • Use EWS Managed API 2.0 or in your case ews-javascript-api to handle loading email mimecontent (contains email + attachments) or attachment mimecontent.
            • Upload file to another service or do whatever you want with it.

            Before I switched to C# for serverside I was using a nodejs one for testing, so if you have questions feel free to ask.

            Source https://stackoverflow.com/questions/60621081

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ews-js-api-browser

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i ews-js-api-browser

          • CLONE
          • HTTPS

            https://github.com/gautamsi/ews-js-api-browser.git

          • CLI

            gh repo clone gautamsi/ews-js-api-browser

          • sshUrl

            git@github.com:gautamsi/ews-js-api-browser.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular TypeScript Libraries

            developer-roadmap

            by kamranahmedse

            vscode

            by microsoft

            angular

            by angular

            TypeScript

            by microsoft

            ant-design

            by ant-design

            Try Top Libraries by gautamsi

            ews-javascript-api

            by gautamsiTypeScript

            aurelia-OfficeUIFabric

            by gautamsiTypeScript

            ews-javascript-api-auth

            by gautamsiJavaScript

            generator-keystone-ts

            by gautamsiJavaScript

            keystone-ts

            by gautamsiTypeScript