Aspose.Email-Cloud
19.12.0
Aspose.Email Cloud is a REST API for creating email applications that work with common email file formats. It lets developers manipulate message formats such as Outlook MSG, EML and MHT files.
See the version list below for details.
Install-Package Aspose.Email-Cloud -Version 19.12.0
dotnet add package Aspose.Email-Cloud --version 19.12.0
<PackageReference Include="Aspose.Email-Cloud" Version="19.12.0" />
paket add Aspose.Email-Cloud --version 19.12.0
#r "nuget: Aspose.Email-Cloud, 19.12.0"
This SDK allows you to work with Aspose.Email Cloud REST APIs in your .NET 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
- Has a built-in email client
- Supports AI functionalities:
- The Business card recognition
- The Name API for parsing and handling personal names
How to use the SDK?
The complete source code is available in the GIT repository.
Use reference documentation, available here
Prerequisites
To use this SDK, you need:
- One of supported (or compatible with supported) .NET frameworks:
- .NETFramework 2.0
- .NETFramework 4.5.2
- .NETStandard 2.0
- MonoAndroid 6.0
- Xamarin.iOS 1.0
- Xamarin.Mac 2.0
- 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).
Usage examples
To use the API, you should create an EmailApi object:
using Aspose.Email.Cloud.Sdk.Api; //EmailApi class is here
using Aspose.Email.Cloud.Sdk.Model; //REST API models are here
using Aspose.Email.Cloud.Sdk.Model.Requests; //Request models are here (all API calls use corresponding request model class)
...
var appKey = "Your App Key";
var appSid = "Your App SID";
var emailApi = new EmailApi(appKey, appSid);
API calls can be synchronous or asynchronous (if it's supported by the framework):
var result = emailApi.GetCalendar(new GetCalendarRequest(calendarFile, folder, StorageName));
// or
var result = await emailApi.GetCalendarAsync(new GetCalendarRequest(calendarFile, folder, StorageName));
Some examples are listed below and most of them are available on wiki
Business cards recognition API
Parse images:
//Read image from file and convert it to Base64 string
var bytes = File.ReadAllBytes("some/business/card/image/file/on/disk");
var base64Image = Convert.ToBase64String(bytes);
var result = await emailApi.AiBcrParseAsync(new AiBcrParseRequest(new AiBcrBase64Rq(null,
new List<AiBcrBase64Image> {new AiBcrBase64Image(true, base64Image)})));
//Result contains all recognized VCard objects (only the one in our case)
var contactProperties = result.Value.First();
//VCard object is available as a list of properties, without any external calls:
var primitiveProperties = contactProperties.InternalProperties
.Where(property => property is PrimitiveObject)
.Select(property => property as PrimitiveObject)
.ToList();
foreach(var primitiveProperty in primitiveProperties)
{
System.Console.WriteLine($"Property name: {primitiveProperty.Name}, value: {primitiveProperty.Value}");
}
Name API
See examples below:
Detect a person's gender by name
var name = "John Cane";
var result = await emailApi.AiNameGenderizeAsync(
new AiNameGenderizeRequest(name));
// the result contains a list of hypothesis about a person's gender.
// all hypothesis include score, so you can use the most scored version,
// which will be the first in a list:
System.Console.WriteLine(result.Value.First().Gender); //prints "Male"
Format person's name using defined format
var result = await emailApi.AiNameFormatAsync(
new AiNameFormatRequest(
"Mr. John Michael Cane",
format:"%t%L%f%m"));
System.Console.WriteLine(result.Name); //prints "Mr. Cane J. M."
Compare the names to find out if they belong to the same person or not
const string first = "John Michael Cane";
const string second = "Cane J.";
var result = await emailApi.AiNameMatchAsync(
new AiNameMatchRequest(first, second));
System.Console.WriteLine(result.Similarity > 0.5); //prints "true", names look similar
Resources
- SDK Reference documentation
- Website
- Product Home
- Documentation
- API Reference
- Free Support Forum
- Paid Support Helpdesk
- Blog
- Git repository: Aspose.Email Cloud SDK for .Net
- Git repository: Aspose.Email Cloud SDK for Ruby
- Git repository: Aspose.Email Cloud SDK for Python
- Git repository: Aspose.Email Cloud SDK for PHP
- Git repository: Aspose.Email Cloud SDK for Typescript
- Git repository: Aspose.Email Cloud SDK for Java
This SDK allows you to work with Aspose.Email Cloud REST APIs in your .NET 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
- Has a built-in email client
- Supports AI functionalities:
- The Business card recognition
- The Name API for parsing and handling personal names
How to use the SDK?
The complete source code is available in the GIT repository.
Use reference documentation, available here
Prerequisites
To use this SDK, you need:
- One of supported (or compatible with supported) .NET frameworks:
- .NETFramework 2.0
- .NETFramework 4.5.2
- .NETStandard 2.0
- MonoAndroid 6.0
- Xamarin.iOS 1.0
- Xamarin.Mac 2.0
- 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).
Usage examples
To use the API, you should create an EmailApi object:
using Aspose.Email.Cloud.Sdk.Api; //EmailApi class is here
using Aspose.Email.Cloud.Sdk.Model; //REST API models are here
using Aspose.Email.Cloud.Sdk.Model.Requests; //Request models are here (all API calls use corresponding request model class)
...
var appKey = "Your App Key";
var appSid = "Your App SID";
var emailApi = new EmailApi(appKey, appSid);
API calls can be synchronous or asynchronous (if it's supported by the framework):
var result = emailApi.GetCalendar(new GetCalendarRequest(calendarFile, folder, StorageName));
// or
var result = await emailApi.GetCalendarAsync(new GetCalendarRequest(calendarFile, folder, StorageName));
Some examples are listed below and most of them are available on wiki
Business cards recognition API
Parse images:
//Read image from file and convert it to Base64 string
var bytes = File.ReadAllBytes("some/business/card/image/file/on/disk");
var base64Image = Convert.ToBase64String(bytes);
var result = await emailApi.AiBcrParseAsync(new AiBcrParseRequest(new AiBcrBase64Rq(null,
new List<AiBcrBase64Image> {new AiBcrBase64Image(true, base64Image)})));
//Result contains all recognized VCard objects (only the one in our case)
var contactProperties = result.Value.First();
//VCard object is available as a list of properties, without any external calls:
var primitiveProperties = contactProperties.InternalProperties
.Where(property => property is PrimitiveObject)
.Select(property => property as PrimitiveObject)
.ToList();
foreach(var primitiveProperty in primitiveProperties)
{
System.Console.WriteLine($"Property name: {primitiveProperty.Name}, value: {primitiveProperty.Value}");
}
Name API
See examples below:
Detect a person's gender by name
var name = "John Cane";
var result = await emailApi.AiNameGenderizeAsync(
new AiNameGenderizeRequest(name));
// the result contains a list of hypothesis about a person's gender.
// all hypothesis include score, so you can use the most scored version,
// which will be the first in a list:
System.Console.WriteLine(result.Value.First().Gender); //prints "Male"
Format person's name using defined format
var result = await emailApi.AiNameFormatAsync(
new AiNameFormatRequest(
"Mr. John Michael Cane",
format:"%t%L%f%m"));
System.Console.WriteLine(result.Name); //prints "Mr. Cane J. M."
Compare the names to find out if they belong to the same person or not
const string first = "John Michael Cane";
const string second = "Cane J.";
var result = await emailApi.AiNameMatchAsync(
new AiNameMatchRequest(first, second));
System.Console.WriteLine(result.Similarity > 0.5); //prints "true", names look similar
Resources
- SDK Reference documentation
- Website
- Product Home
- Documentation
- API Reference
- Free Support Forum
- Paid Support Helpdesk
- Blog
- Git repository: Aspose.Email Cloud SDK for .Net
- Git repository: Aspose.Email Cloud SDK for Ruby
- Git repository: Aspose.Email Cloud SDK for Python
- Git repository: Aspose.Email Cloud SDK for PHP
- Git repository: Aspose.Email Cloud SDK for Typescript
- Git repository: Aspose.Email Cloud SDK for Java
Dependencies
-
.NETFramework 2.0
- Newtonsoft.Json (>= 12.0.2)
- RestSharp.Net2 (>= 1.1.11)
-
.NETFramework 4.5.2
- Newtonsoft.Json (>= 12.0.2)
- RestSharp (>= 106.6.10)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.2)
- RestSharp (>= 106.6.10)
-
MonoAndroid 6.0
- Newtonsoft.Json (>= 8.0.3)
- RestSharp (>= 106.6.10)
-
Xamarin.iOS 1.0
- Newtonsoft.Json (>= 8.0.3)
- RestSharp (>= 106.6.10)
-
Xamarin.Mac 2.0
- Newtonsoft.Json (>= 8.0.3)
- RestSharp (>= 106.6.10)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
20.12.0 | 52 | 12/30/2020 |
20.10.0 | 108 | 10/29/2020 |
20.9.0 | 131 | 9/9/2020 |
20.7.0 | 194 | 7/23/2020 |
20.5.0 | 183 | 5/27/2020 |
20.3.0 | 197 | 3/16/2020 |
20.2.0 | 188 | 2/26/2020 |
20.1.0 | 258 | 1/28/2020 |
19.12.0 | 251 | 12/31/2019 |
19.11.0 | 193 | 11/25/2019 |
18.7.0 | 518 | 8/27/2018 |
1.0.8 | 557 | 9/27/2017 |
1.0.7 | 475 | 9/27/2017 |
1.0.6 | 531 | 8/14/2017 |
1.0.5 | 738 | 1/6/2017 |
1.0.4 | 560 | 11/2/2016 |
1.0.3 | 659 | 11/2/2016 |
1.0.2 | 542 | 10/21/2016 |
1.0.1 | 650 | 2/26/2016 |
1.0.0 | 608 | 2/26/2016 |