Skip to content

Commit 8c1f39b

Browse files
Merge pull request #11 from aspose-email-cloud/develop
Develop
2 parents 968ee98 + 4e6ef62 commit 8c1f39b

File tree

565 files changed

+31416
-31269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

565 files changed

+31416
-31269
lines changed

README.md

Lines changed: 42 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,74 @@
1-
# Aspose.Email Cloud SDK for Node.Js
1+
# Manage Emails in Cloud via Node.Js/Typescript REST SDK
22

33
[![npm](https://img.shields.io/npm/v/@asposecloud/aspose-email-cloud)](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) [![License](https://img.shields.io/github/license/aspose-email-cloud/aspose-email-cloud-node)](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) [![node](https://img.shields.io/node/v/@asposecloud/aspose-email-cloud)](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) [![types](https://img.shields.io/npm/types/@asposecloud/aspose-email-cloud)](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) ![tests](https://github.com/aspose-email-cloud/aspose-email-cloud-node/workflows/tests/badge.svg)
44

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.
66

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.
98

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
1113
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.
1415
- 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.
1718
- 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+
3237
## 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).
3439

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).
4541

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).
4743

4844
### Prerequisites
4945
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).
5046

5147
### 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).
5349
From the command line:
5450

55-
npm install @asposecloud/aspose-email-cloud --save
51+
npm install @asposecloud/aspose-email-cloud --save
5652

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).
5854

5955
### Usage examples
60-
To use the API, you should create an EmailApi object:
56+
To use the API, you should create an EmailCloud object:
6157
```typescript
6258
var appKey = "Your App Key";
6359
var appSid = "Your App SID";
64-
var api = new EmailApi(appSid, appKey);
60+
var api = new EmailCloud(appSid, appKey);
6561
```
6662

6763
#### Business cards recognition API
6864

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:
7066

7167
```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];
7772
```
7873

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)

doc/AccountBaseRequest.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

doc/AddAttachmentRequest.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

doc/AiBcrApi.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# AiBcrApi
2+
3+
4+
<a name="parse"></a>
5+
# **parse**
6+
```typescript
7+
public async parse(request: AiBcrParseRequest): Promise< ContactList >
8+
```
9+
10+
Parse images to vCard document models
11+
12+
### Request Parameters
13+
```typescript
14+
new AiBcrParse(
15+
file,
16+
countries=countries,
17+
languages=languages,
18+
isSingle=isSingle)
19+
```
20+
21+
Name | Type | Description | Notes
22+
---- | ---- | ----------- | -----
23+
**file** | **byte[]**| File to parse |
24+
**countries** | **string**| Comma-separated codes of countries. | [optional] [default to ]
25+
**languages** | **string**| Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \&quot;it\&quot; or \&quot;ita\&quot; for Italian); it&#39;s \&quot;\&quot; by default. | [optional] [default to ]
26+
**isSingle** | **boolean**| Determines that image contains single VCard or more. | [optional] [default to true]
27+
28+
### Return type
29+
30+
Promise< [ContactList](ContactList.md) >
31+
32+
[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to API README]](README.md)
33+
34+
<a name="parseStorage"></a>
35+
# **parseStorage**
36+
```typescript
37+
public async parseStorage(request: model.AiBcrParseStorageRequest): Promise< StorageFileLocationList >
38+
```
39+
40+
Parse images from storage to vCard files
41+
42+
### request Parameter
43+
44+
See parameter model documentation at [AiBcrParseStorageRequest](AiBcrParseStorageRequest.md)
45+
46+
### Return type
47+
48+
Promise< [StorageFileLocationList](StorageFileLocationList.md) >
49+
50+
[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to API README]](README.md)
51+

doc/AiBcrApi_list.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Documentation for AiBcrApi
2+
3+
All URIs are relative to *https://api.aspose.cloud/v4.0*
4+
5+
Method | HTTP request | Description
6+
------ | ------------ | -----------
7+
[**parse**](AiBcrApi.md#parse) | **PUT** /email/AiBcr/parse | Parse images to vCard document models
8+
[**parseStorage**](AiBcrApi.md#parseStorage) | **PUT** /email/AiBcr/parse-storage | Parse images from storage to vCard files

doc/AiBcrImage.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
# AiBcrImage
32

43
## Properties
54
Name | Type | Description | Notes
65
------------ | ------------- | ------------- | -------------
7-
**isSingle** | **boolean** | Determines that image contains single VCard or more. Ignored in current version. Multiple cards on image support will be added soon | [default to undefined]
6+
**isSingle** | **boolean** | Determines that image contains single VCard or more. | [default to undefined]
87

98

109

doc/AiBcrImageStorageFile.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
# AiBcrImageStorageFile
32

43
## Properties
54
Name | Type | Description | Notes
65
------------ | ------------- | ------------- | -------------
7-
**file** | [**StorageFileLocation**](StorageFileLocation.md) | Image location | [optional] [default to undefined]
6+
**file** | [**StorageFileLocation**](StorageFileLocation.md) | Image location | [default to undefined]
87

98
Parent class: [AiBcrImage](AiBcrImage.md)
109

doc/AiBcrOcrData.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

doc/AiBcrOcrDataPart.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

doc/AiBcrOptions.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
21
# AiBcrOptions
32

43
## Properties
54
Name | Type | Description | Notes
65
------------ | ------------- | ------------- | -------------
7-
**languages** | **string** | Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default | [optional] [default to undefined]
8-
**countries** | **string** | Comma-separated codes of countries | [optional] [default to undefined]
6+
**languages** | **string** | Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default. | [optional] [default to undefined]
7+
**countries** | **string** | Comma-separated codes of countries. | [optional] [default to undefined]
98

109

1110

0 commit comments

Comments
 (0)