|
1 | | -# Aspose.Email Cloud SDK for Node.Js |
| 1 | +# Manage Emails in Cloud via Node.Js/Typescript REST SDK |
2 | 2 |
|
3 | 3 | [](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) [](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) [](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) [](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud)  |
4 | 4 |
|
5 | | -This repository contains Aspose.Email Cloud SDK for Node.Js source code. This SDK allows you to work with Aspose.Email Cloud REST APIs in your Node.Js applications quickly and easily, with zero initial cost. |
| 5 | +[Aspose.Email Cloud SDK for Node.Js/Typescript](https://products.aspose.cloud/email/nodejs) 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. |
6 | 6 |
|
7 | | -[Aspose.Email Cloud home](https://products.aspose.cloud/email/family "Aspose.Email Cloud") |
8 | | -[API Reference](https://apireference.aspose.cloud/email/) |
| 7 | +This SDK allows you to work with Aspose.Email Cloud REST APIs in your Node.Js applications quickly and easily, with zero initial cost. |
9 | 8 |
|
10 | | -# Key features |
| 9 | +[Aspose.Email Cloud home](https://products.aspose.cloud/email/family) |
| 10 | +[API Reference](https://apireference.aspose.cloud/email/) |
| 11 | + |
| 12 | +# Cloud Email Processing Features |
11 | 13 | Aspose.Email Cloud is a REST API for creating email applications that work with standard email file formats. This SDK: |
12 | | -- Lets developers manipulate different emails’ formats such as Outlook MSG, EML, VCard, and iCalendar files |
13 | | -- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files |
| 14 | +- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files. |
14 | 15 | - Supports AI functions: |
15 | | - - The Business card recognition |
16 | | - - The Name API for parsing and handling personal names |
| 16 | + - The Business card recognition. |
| 17 | + - The Name API for parsing and handling personal names. |
17 | 18 | - Has a built-in email client. This client provides: |
18 | | - - Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav |
19 | | - - Virtual multi-account |
20 | | - - Message threads (POP3 accounts are also supported) |
21 | | -- Email configuration discovery |
22 | | -- Disposable email address detection |
23 | | - |
24 | | -## New features in version 20.7 |
25 | | -- New MAPI message files API with models: |
26 | | - - `MapiMessageDto` - represents the Microsoft Outlook message. |
27 | | - - `MapiCalendarDto` - represents the Microsoft Outlook calendar object. |
28 | | - - `MapiContactDto` - represents the Microsoft Outlook contact information. |
29 | | -- Improved Recurrence pattern support for CalendarDto. |
30 | | - |
31 | | -See [Release notes](https://docs.aspose.cloud/display/emailcloud/Aspose.Email+Cloud+20.7+Release+Notes) |
| 19 | + - Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav. |
| 20 | + - Virtual multi-account. |
| 21 | + - Message threads (POP3 accounts are also supported). |
| 22 | +- Email configuration discovery. |
| 23 | +- Disposable email address detection. |
| 24 | + |
| 25 | +## New features in version 20.9 |
| 26 | + |
| 27 | +Aspose.Email Cloud SDK 20.9.0 is based on a new v4.0 REST API. |
| 28 | + |
| 29 | +- All SDK functions are divided into groups (Email, Calendar, Contact, Client, Ai, Mapi, etc.). |
| 30 | +- Unified file API provided for supported file types (Save, Get, Convert, AsFile, FromFile, AsMapi/AsDto). |
| 31 | +- HierarchicalObject based API is removed. |
| 32 | +- All models are stored in one folder/namespace. |
| 33 | +- The request models are simplified. |
| 34 | + |
| 35 | +See [Release notes](https://docs.aspose.cloud/display/emailcloud/Aspose.Email+Cloud+20.9+Release+Notes). |
| 36 | + |
32 | 37 | ## How to use the SDK? |
33 | | -The complete source code is available in the GIT repository. |
| 38 | +The complete source code is available in the [GIT repository](https://github.com/aspose-email-cloud/aspose-email-cloud-node/tree/master/src). |
34 | 39 |
|
35 | | -Use [SDK tutorials](https://docs.aspose.cloud/display/emailcloud/SDK+Tutorials): |
36 | | -- [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup) - installation, account setup, first API calls |
37 | | -- [Business Cards Recognition API](https://docs.aspose.cloud/display/emailcloud/Business+Cards+Recognition+API) - convert captured business cards and name card images, into a vCard format |
38 | | -- [Working with Name API](https://docs.aspose.cloud/display/emailcloud/Working+with+Name+API) - format, genderize, compare, parse, autocomplete names |
39 | | -- [Email Message Files](https://docs.aspose.cloud/display/emailcloud/Email+Message+Files) - Convert EML to MSG and back, edit EML files, etc. |
40 | | -- [Quick Start With iCalendar API](https://docs.aspose.cloud/display/emailcloud/Quick+Start+With+iCalendar+API) - Crate and edit iCalendar files |
41 | | -- [Quick Start With VCard API](https://docs.aspose.cloud/display/emailcloud/Quick+Start+With+VCard+API) - Create and edit VCard files, business card recognition |
42 | | -- [Quick Start With Email Client](https://docs.aspose.cloud/display/emailcloud/Quick+Start+With+Email+Client) - Setup builtin email client, search/fetch/send/move/delete messages |
43 | | -- [Email Client Threads](https://docs.aspose.cloud/display/emailcloud/Email+Client+Threads) - Fetch/Move/Delete email message threads using builtin email client |
44 | | -- [File converters](https://docs.aspose.cloud/display/emailcloud/Convert+Email%2C+Calendar+and+Contact+Files) |
| 40 | +Use [SDK tutorials](https://docs.aspose.cloud/display/emailcloud/SDK+Tutorials). |
45 | 41 |
|
46 | | -SDK reference documentation is available in [this README](doc/README.md) |
| 42 | +SDK reference documentation is available in [this README](https://github.com/aspose-email-cloud/aspose-email-cloud-node/blob/master/doc/README.md). |
47 | 43 |
|
48 | 44 | ### Prerequisites |
49 | 45 | To use this SDK, you need an App SID and an App Key; they can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) (it requires free registration in Aspose Cloud for this). |
50 | 46 |
|
51 | 47 | ### Installation |
52 | | -You can use it directly in your project via the source code or get a [npm package](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) |
| 48 | +You can use it directly in your project via the source code or get a [npm package](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud). |
53 | 49 | From the command line: |
54 | 50 |
|
55 | | - npm install @asposecloud/aspose-email-cloud --save |
| 51 | + npm install @asposecloud/aspose-email-cloud --save |
56 | 52 |
|
57 | | -See more details about SDK installation in this tutorial: [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup) |
| 53 | +See more details about SDK installation in this tutorial: [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup). |
58 | 54 |
|
59 | 55 | ### Usage examples |
60 | | -To use the API, you should create an EmailApi object: |
| 56 | +To use the API, you should create an EmailCloud object: |
61 | 57 | ```typescript |
62 | 58 | var appKey = "Your App Key"; |
63 | 59 | var appSid = "Your App SID"; |
64 | | -var api = new EmailApi(appSid, appKey); |
| 60 | +var api = new EmailCloud(appSid, appKey); |
65 | 61 | ``` |
66 | 62 |
|
67 | 63 | #### Business cards recognition API |
68 | 64 |
|
69 | | -Use `AiBcrParseModel` method to parse business card image to VCard DTO: |
| 65 | +Use `AiBcrApi.parse` method to parse business card image to VCard DTO: |
70 | 66 |
|
71 | 67 | ```typescript |
72 | | -var imageData = fs.readFileSync("/tmp/alex.png").toString('base64'); |
73 | | -var result = await api.aiBcrParseModel(new requests.AiBcrParseModelRequest( |
74 | | - new models.AiBcrBase64Rq( |
75 | | - undefined, [new models.AiBcrBase64Image(true, imageData)]))); |
76 | | -var contact = result.body.value[0]; |
| 68 | +var imageData = fs.readFileSync("path/to/image/to/parse.png"); |
| 69 | +var result = await api.ai.bcr.parse(new AiBcrParseRequest( |
| 70 | + imageData, undefined, undefined, true)); |
| 71 | +var contact = result.value[0]; |
77 | 72 | ``` |
78 | 73 |
|
79 | | -See more details [here](https://docs.aspose.cloud/display/emailcloud/Parse+Image+To+VCard+File) and [here](https://docs.aspose.cloud/display/emailcloud/Business+Cards+Recognition+API) |
80 | | - |
81 | | -# Licensing |
82 | | -All Aspose.Email Cloud SDKs, helper scripts and templates are licensed under [MIT License](LICENSE). |
83 | | - |
84 | | -# Resources |
85 | | -+ [**SDK reference documentation**](doc/README.md) |
86 | | -+ [**Website**](https://www.aspose.cloud) |
87 | | -+ [**Product Home**](https://products.aspose.cloud/Email/cloud) |
88 | | -+ [**Documentation**](https://docs.aspose.cloud/display/Emailcloud/Home) |
89 | | -+ [**API Reference**](https://apireference.aspose.cloud/email/) |
90 | | -+ [**Free Support Forum**](https://forum.aspose.cloud/c/email) |
91 | | -+ [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/) |
92 | | -+ [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-email-cloud/) |
93 | | -+ [**Git repository: Aspose.Email Cloud SDK for .Net**](https://github.com/aspose-email-cloud/aspose-email-cloud-dotnet) |
94 | | -+ [**Git repository: Aspose.Email Cloud SDK for Ruby**](https://github.com/aspose-email-cloud/aspose-email-cloud-ruby) |
95 | | -+ [**Git repository: Aspose.Email Cloud SDK for Python**](https://github.com/aspose-email-cloud/aspose-email-cloud-python) |
96 | | -+ [**Git repository: Aspose.Email Cloud SDK for PHP**](https://github.com/aspose-email-cloud/aspose-email-cloud-php) |
97 | | -+ [**Git repository: Aspose.Email Cloud SDK for Typescript**](https://github.com/aspose-email-cloud/aspose-email-cloud-node) |
98 | | -+ [**Git repository: Aspose.Email Cloud SDK for Java**](https://github.com/aspose-email-cloud/aspose-email-cloud-java) |
| 74 | +[Product Page](https://products.aspose.cloud/email/nodejs) | [Documentation](https://docs.aspose.cloud/display/Emailcloud/Home) | [Demo](https://products.aspose.app/email/family) | [API Reference](https://apireference.aspose.cloud/email/) | [Blog](https://blog.aspose.cloud/category/email/) | [Free support](https://forum.aspose.cloud/c/email) | [Free trial](https://dashboard.aspose.cloud/#/apps) |
0 commit comments