Skip to content

Commit 21a8347

Browse files
Merge pull request #15 from aspose-email-cloud/develop
Develop
2 parents 5b979c5 + a2f2f7e commit 21a8347

File tree

722 files changed

+22660
-26221
lines changed

Some content is hidden

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

722 files changed

+22660
-26221
lines changed

README.md

Lines changed: 36 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,47 @@
1-
# Aspose.Email Cloud SDK for Java
1+
# Manage Emails in Cloud via Java REST SDK
22
[![Maven](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Frepository.aspose.cloud%2Frepo%2Fcom%2Faspose%2Faspose-email-cloud%2Fmaven-metadata.xml)](https://repository.aspose.cloud/repo/com/aspose/aspose-email-cloud/) [![License](https://img.shields.io/github/license/aspose-email-cloud/aspose-email-cloud-java)](https://repository.aspose.cloud/repo/com/aspose/aspose-email-cloud/) ![tests](https://github.com/aspose-email-cloud/aspose-email-cloud-java/workflows/tests/badge.svg)
33

4-
This repository contains Aspose.Email Cloud SDK for Java source code. This SDK allows you to work with Aspose.Email Cloud REST APIs in your Java applications quickly and easily, with zero initial cost.
4+
[Aspose.Email Cloud SDK for Java](https://products.aspose.cloud/email/java) 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.
55

6-
[Aspose.Email Cloud home](https://products.aspose.cloud/email/family "Aspose.Email Cloud")
6+
This SDK allows you to work with Aspose.Email Cloud REST APIs in your Java applications quickly and easily, with zero initial cost.
7+
8+
[Aspose.Email Cloud home](https://products.aspose.cloud/email/family)
79
[API Reference](https://apireference.aspose.cloud/email/)
810

9-
# Key features
11+
# Cloud Email Processing Features
1012
Aspose.Email Cloud is a REST API for creating email applications that work with standard email file formats. This SDK:
11-
- Lets developers manipulate different emails’ formats such as Outlook MSG, EML, VCard, and iCalendar files
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.
1314
- Supports AI functions:
14-
- The Business card recognition
15-
- The Name API for parsing and handling personal names
15+
- The Business card recognition.
16+
- The Name API for parsing and handling personal names.
1617
- Has a built-in email client. This client provides:
17-
- Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav
18-
- Virtual multi-account
19-
- Message threads (POP3 accounts are also supported)
20-
- Email configuration discovery
21-
- Disposable email address detection
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.9
25+
26+
Aspose.Email Cloud SDK 20.9.0 is based on a new v4.0 REST API.
2227

23-
## New features in version 20.7
24-
- New MAPI message files API with models:
25-
- `MapiMessageDto` - represents the Microsoft Outlook message.
26-
- `MapiCalendarDto` - represents the Microsoft Outlook calendar object.
27-
- `MapiContactDto` - represents the Microsoft Outlook contact information.
28-
- Improved Recurrence pattern support for CalendarDto.
28+
- All SDK functions are divided into groups (Email, Calendar, Contact, Client, Ai, Mapi, etc.).
29+
- Unified file API provided for supported file types (Save, Get, Convert, AsFile, FromFile, AsMapi/AsDto).
30+
- HierarchicalObject based API is removed.
31+
- All models are stored in one folder/namespace.
32+
- The request models are simplified.
2933

30-
See [Release notes](https://docs.aspose.cloud/display/emailcloud/Aspose.Email+Cloud+20.7+Release+Notes)
34+
See [Release notes](https://docs.aspose.cloud/display/emailcloud/Aspose.Email+Cloud+20.9+Release+Notes).
3135

3236
## How to use the SDK?
33-
The complete source code is available in the GIT repository.
37+
The complete source code is available in the [GIT repository](https://github.com/aspose-email-cloud/aspose-email-cloud-java/tree/master/src/main/java/com/aspose/email/cloud/sdk).
3438

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)
39+
Use [SDK tutorials](https://docs.aspose.cloud/display/emailcloud/SDK+Tutorials).
4540

46-
SDK reference documentation is available in [this README](https://github.com/aspose-email-cloud/aspose-email-cloud-java/blob/master/docs/README.md)
41+
SDK reference documentation is available in [this README](https://github.com/aspose-email-cloud/aspose-email-cloud-java/blob/master/docs/README.md).
4742

4843
### Prerequisites
49-
To use these 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).
44+
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).
5045

5146
### Installation
5247
You can either directly use it in your project via jar file or add it as Maven dependency ([see repo](https://repository.aspose.cloud/repo/com/aspose/aspose-email-cloud/)):
@@ -67,42 +62,23 @@ Then, add a dependency:
6762
</dependency>
6863
```
6964

70-
See more details about SDK installation in this tutorial: [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup)
65+
See more details about SDK installation in this tutorial: [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup).
7166

7267
### Usage examples
73-
To use the API, you should create an EmailApi object:
68+
To use the API, you should create an EmailCloud object:
7469
```java
75-
EmailApi api = new EmailApi("Your App Key", "Your App SID");
70+
EmailCloud api = new EmailCloud("Your App Key", "Your App SID");
7671
```
7772

7873
#### Business cards recognition API
79-
Use `AiBcrParseModel` method to parse business card image to VCard DTO:
74+
Use `AiBcrApi.parse` method to parse business card image to VCard DTO:
8075

8176
```java
8277
byte[] fileBytes = IOUtils.toByteArray(new FileInputStream("/tmp/alex.png"));
83-
String fileBase64 = Base64.encodeToString(fileBytes, false);
84-
ListResponseOfContactDto result = api.aiBcrParseModel(new AiBcrParseModelRequestData(
85-
new AiBcrBase64Rq(null, Arrays.asList(new AiBcrBase64Image(true, fileBase64)))));
78+
ContactList result = api.ai().bcr().parse(new AiBcrParseRequest(
79+
fileBytes, null, null, true));
8680
ContactDto contact = result.getValue().get(0);
81+
assert contact.getDisplayName().contains("Parsed Display Name");
8782
```
8883

89-
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)
90-
91-
# Licensing
92-
All Aspose.Email for Cloud SDKs, helper scripts and templates are licensed under [MIT License](LICENSE).
93-
94-
# Resources
95-
+ [**SDK Reference documentation**](docs/README.md)
96-
+ [**Website**](https://www.aspose.cloud)
97-
+ [**Product Home**](https://products.aspose.cloud/Email/cloud)
98-
+ [**Documentation**](https://docs.aspose.cloud/display/Emailcloud/Home)
99-
+ [**API Reference**](https://apireference.aspose.cloud/email/)
100-
+ [**Free Support Forum**](https://forum.aspose.cloud/c/email)
101-
+ [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
102-
+ [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-email-cloud/)
103-
+ [**Git repository: Aspose.Email Cloud SDK for .Net**](https://github.com/aspose-email-cloud/aspose-email-cloud-dotnet)
104-
+ [**Git repository: Aspose.Email Cloud SDK for Ruby**](https://github.com/aspose-email-cloud/aspose-email-cloud-ruby)
105-
+ [**Git repository: Aspose.Email Cloud SDK for Python**](https://github.com/aspose-email-cloud/aspose-email-cloud-python)
106-
+ [**Git repository: Aspose.Email Cloud SDK for PHP**](https://github.com/aspose-email-cloud/aspose-email-cloud-php)
107-
+ [**Git repository: Aspose.Email Cloud SDK for Typescript**](https://github.com/aspose-email-cloud/aspose-email-cloud-node)
108-
+ [**Git repository: Aspose.Email Cloud SDK for Java**](https://github.com/aspose-email-cloud/aspose-email-cloud-java)
84+
[Product Page](https://products.aspose.cloud/email/java) | [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)

docs/AccountBaseRequest.md

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

docs/AddAttachmentRequest.md

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

docs/AiBcrApi.md

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

docs/AiBcrApi_list.md

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

docs/AiBcrBase64Image.md

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

docs/AiBcrBase64Rq.md

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

docs/AiBcrImage.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11

2-
# com.aspose.email.cloud.sdk.model.AiBcrImage
3-
2+
# AiBcrImage
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 |
6+
**isSingle** | **Boolean** | Determines that image contains single VCard or more. |
7+
8+
89

910

10-
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to API README]](README.md)
11+
[[Back to Model list]](Models.md) [[Back to API README]](README.md)
1112

docs/AiBcrImageStorageFile.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11

2-
# com.aspose.email.cloud.sdk.model.AiBcrImageStorageFile
3-
2+
# AiBcrImageStorageFile
43
## Properties
54
Name | Type | Description | Notes
65
------------ | ------------- | ------------- | -------------
7-
**file** | [**StorageFileLocation**](StorageFileLocation.md) | Image location | [optional]
6+
**file** | [**StorageFileLocation**](StorageFileLocation.md) | Image location |
7+
8+
9+
## Parent class
810

11+
See: [AiBcrImage](AiBcrImage.md)
912

10-
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to API README]](README.md)
13+
[[Back to Model list]](Models.md) [[Back to API README]](README.md)
1114

docs/AiBcrOcrData.md

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

0 commit comments

Comments
 (0)