@asposecloud/aspose-email-cloud

Aspose.Email Cloud Node.js SDK

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
10Jun 6, 2021Jan 29, 2018Minified + gzip package size for @asposecloud/aspose-email-cloud in KB

Readme

npm License node types tests

Manage Emails in Cloud via Node.Js/Typescript REST SDK

Aspose.Email Cloud SDK for Node.Js/Typescript is a REST API SDK for creating email applications that work with standard email file formats such as Outlook MSG, EML, iCalendar files and VCard.

This SDK allows you to work with Aspose.Email Cloud REST APIs in your Node.Js applications quickly and easily, with zero initial cost.

Aspose.Email Cloud home

Swagger UI

Cloud Email Processing Features

Aspose.Email Cloud is a REST API for creating email applications that work with standard email file formats. This SDK:

  • Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files.
  • Supports AI functions:
    • The Business card recognition.
    • The Name API for parsing and handling personal names.
  • Has a built-in email client. This client provides:
    • Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav.
    • Virtual multi-account.
    • Message threads (POP3 accounts are also supported).
  • Email configuration discovery.
  • Disposable email address detection.

Enhancements in Version 21.4

  • IMAP native threads support added to the built-in Email client.
  • New field ClientThreadMoveRequest.SourceFolder added to specify a folder to move a thread from.

See Release notes.

How to use the SDK?

The complete source code is available in the GIT repository.

Use SDK tutorials and SDK reference documentation.

Prerequisites

To use this SDK, you need an App SID and an App Key; they can be looked up at Aspose Cloud Dashboard (it requires free registration in Aspose Cloud for this).

Installation

You can use it directly in your project via the source code or get a npm package. From the command line:

npm install @asposecloud/aspose-email-cloud --save

See more details about SDK installation in this tutorial: SDK setup.

Usage examples

To use the API, you should create an EmailCloud object:

let clientSecret = "Your Client secret";
let clientId = "Your Client id";

let api = new EmailCloud(clientSecret, clientId);

Business cards recognition API

Use AiBcrApi.parse method to parse business card image to VCard DTO:

var imageData = fs.readFileSync("path/to/image/to/parse.png");
var result = await api.ai.bcr.parse(Models.AiBcrParseRequest()
    .file(imageData)
    .isSingle(true)
    .build());
var contact = result.value[0];

Aspose.Email Cloud SDKs in Popular Languages

.NET Java PHP Python Ruby Node.js
GitHub GitHub GitHub GitHub GitHub GitHub
NuGet Maven Composer PIP GEM NPM

Product Page | Documentation | Demo | Swagger UI | Blog | Free support | Free trial | SDK reference documentation

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.