Skip to content

aspose-email-cloud/aspose-email-cloud-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aspose.Email Cloud SDK for Java

Maven License tests

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.

Aspose.Email Cloud home
API Reference

Key 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
  • 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

New features in version 20.7

  • New MAPI message files API with models:
    • MapiMessageDto - represents the Microsoft Outlook message.
    • MapiCalendarDto - represents the Microsoft Outlook calendar object.
    • MapiContactDto - represents the Microsoft Outlook contact information.
  • Improved Recurrence pattern support for CalendarDto.

See Release notes

How to use the SDK?

The complete source code is available in the GIT repository.

Use SDK tutorials:

SDK reference documentation is available in this README

Prerequisites

To use these 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 either directly use it in your project via jar file or add it as Maven dependency (see repo):

First, you should add a repository:

<repository> <id>aspose-cloud</id> <name>Aspose.Cloud repository</name> <url>https://repository.aspose.cloud</url> </repository>

Then, add a dependency:

<dependency> <groupId>com.aspose</groupId> <artifactId>aspose-email-cloud</artifactId> </dependency>

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

Usage examples

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

EmailApi api = new EmailApi("Your App Key", "Your App SID");

Business cards recognition API

Use AiBcrParseModel method to parse business card image to VCard DTO:

byte[] fileBytes = IOUtils.toByteArray(new FileInputStream("/tmp/alex.png")); String fileBase64 = Base64.encodeToString(fileBytes, false); ListResponseOfContactDto result = api.aiBcrParseModel(new AiBcrParseModelRequestData( new AiBcrBase64Rq(null, Arrays.asList(new AiBcrBase64Image(true, fileBase64))))); ContactDto contact = result.getValue().get(0);

See more details here and here

Licensing

All Aspose.Email for Cloud SDKs, helper scripts and templates are licensed under MIT License.

Resources

Packages

No packages published

Contributors 6

Languages