Skip to content

Commit b3bd24a

Browse files
Merge pull request #23 from aspose-email-cloud/develop
Develop
2 parents 3eb43dd + dec9b60 commit b3bd24a

File tree

7 files changed

+48
-15
lines changed

7 files changed

+48
-15
lines changed

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Aspose.Email Cloud is a REST API for creating email applications that work with
2323
- Email configuration discovery.
2424
- Disposable email address detection.
2525

26-
## Enhancements in Version 21.3
26+
## Enhancements in Version 21.4
2727

2828
- IMAP native threads support added to the built-in Email client.
2929
- New field ClientThreadMoveRequest.SourceFolder added to specify a folder to move a thread from.
3030

31-
See [Release notes](https://docs.aspose.cloud/email/aspose-email-cloud-21-3-release-notes/).
31+
See [Release notes](https://docs.aspose.cloud/email/aspose-email-cloud-21-4-release-notes/).
3232

3333
## How to use the SDK?
3434
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).
@@ -64,22 +64,25 @@ To use the API, you should create an EmailCloud object:
6464
```java
6565
EmailCloud api = new EmailCloud("Your Client secret", "Your Client id");
6666
```
67-
## Parse Business Card Image to VCard in Java
6867

69-
```java
70-
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
71-
EmailCloud emailApi = new EmailCloud("MY_CLIENT_SECRET", "MY_CLIENT_ID");
68+
#### Business cards recognition API
69+
Use `AiBcrApi.parse` method to parse business card image to VCard DTO:
7270

73-
byte[] fileBytes = IOUtils.toByteArray(new FileInputStream("D:/alex.png"));
74-
ContactList result = emailApi.ai().bcr().parse(new AiBcrParseRequest(fileBytes, null, null, true));
75-
ContactDto contact = result.getValue().get(0);
71+
```java
72+
byte[] fileBytes = IOUtils.toByteArray(new FileInputStream("/tmp/alex.png"));
73+
ContactList result = api.ai().bcr().parse(Models.aiBcrParseRequest()
74+
.file(fileBytes)
75+
.isSingle(true)
76+
.build());
77+
ContactDto contact = result.getValue().get(0);
78+
assert contact.getDisplayName().contains("Parsed Display Name");
7679
```
7780

7881
## Aspose.Email Cloud SDKs in Popular Languages
7982

8083
| .NET | Java | PHP | Python | Ruby | Node.js |
81-
|---|---|---|---|---|---|
84+
|------|------|-----|--------|------|---------|
8285
| [GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-dotnet) | [GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-java) | [GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-php) | [GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-python) | [GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-ruby) | [GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-node) | [GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-android) | [GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-swift)|[GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-dart) |[GitHub](https://github.com/aspose-email-cloud/aspose-email-cloud-go) |
8386
| [NuGet](https://www.nuget.org/packages/Aspose.Email-Cloud/) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-email-cloud) | [Composer](https://packagist.org/packages/aspose/aspose-email-cloud) | [PIP](https://pypi.org/project/aspose.email-cloud/) | [GEM](https://rubygems.org/gems/aspose_email_cloud) | [NPM](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) |
8487

85-
[Product Page](https://products.aspose.cloud/email/java) | [Documentation](https://docs.aspose.cloud/email/) | [Demo](https://products.aspose.app/email/family) | [Swagger UI](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) | [SDK reference documentation](https://docs.aspose.cloud/email/reference-api)
88+
[Product Page](https://products.aspose.cloud/email/java) | [Documentation](https://docs.aspose.cloud/email/) | [Demo](https://products.aspose.app/email/family) | [Swagger UI](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) | [SDK reference documentation](https://docs.aspose.cloud/email/reference-api)

docs/ClientAccountApi.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ result = Models.emailClientAccount()
5555
.refreshToken("refreshToken")
5656
.login("example@example.com")
5757
.build())
58+
.cacheFile(Models.storageFileLocation()
59+
.fileName("account.cache")
60+
.storage("First Storage")
61+
.folderPath("file/location/folder/on/storage")
62+
.build())
5863
.build();
5964
```
6065
</details>
@@ -89,6 +94,11 @@ result = Models.emailClientAccount()
8994
.refreshToken("refreshToken")
9095
.login("example@example.com")
9196
.build())
97+
.cacheFile(Models.storageFileLocation()
98+
.fileName("account.cache")
99+
.storage("First Storage")
100+
.folderPath("file/location/folder/on/storage")
101+
.build())
92102
.build();
93103

94104
```
@@ -272,6 +282,11 @@ ClientAccountSaveRequest request = Models.clientAccountSaveRequest()
272282
.refreshToken("refreshToken")
273283
.login("example@example.com")
274284
.build())
285+
.cacheFile(Models.storageFileLocation()
286+
.fileName("account.cache")
287+
.storage("First Storage")
288+
.folderPath("file/location/folder/on/storage")
289+
.build())
275290
.build())
276291
.build();
277292
```
@@ -309,6 +324,11 @@ ClientAccountSaveRequest request = Models.clientAccountSaveRequest()
309324
.refreshToken("refreshToken")
310325
.login("example@example.com")
311326
.build())
327+
.cacheFile(Models.storageFileLocation()
328+
.fileName("account.cache")
329+
.storage("First Storage")
330+
.folderPath("file/location/folder/on/storage")
331+
.build())
312332
.build())
313333
.build();
314334

docs/ClientAccountSaveRequest.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ ClientAccountSaveRequest clientAccountSaveRequest = Models.clientAccountSaveRequ
2929
.refreshToken("refreshToken")
3030
.login("example@example.com")
3131
.build())
32+
.cacheFile(Models.storageFileLocation()
33+
.fileName("account.cache")
34+
.storage("First Storage")
35+
.folderPath("file/location/folder/on/storage")
36+
.build())
3237
.build())
3338
.build();
3439
```

docs/ClientMessageApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ byte[] result = api.client().message().fetchFile(request);
436436

437437
Description: Get messages from folder, filtered by query
438438

439-
The query string should have the following view. The example of a simple expression: &#39;&lt;Field name&gt;&#39; &lt;Comparison operator&gt; &#39;&lt;Field value&gt;&#39;, where &amp;lt;Field Name&amp;gt; - the name of a message field through which filtering is made, &amp;lt;Comparison operator&amp;gt; - comparison operators, as their name implies, allow to compare message field and specified value, &amp;lt;Field value&amp;gt; - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (&lt;Simple expression 1&gt; &amp; &lt;Simple expression 2&gt;) | &lt;Simple expression 3 &gt;, where \&quot;&amp;amp;\&quot; - logical-AND operator, \&quot;|\&quot; - logical-OR operator At present the following values are allowed as a field name (&lt;Field name&gt;): \&quot;To\&quot; - represents a TO field of message, \&quot;Text\&quot; - represents string in the header or body of the message, \&quot;Bcc\&quot; - represents a BCC field of message, \&quot;Body\&quot; - represents a string in the body of message, \&quot;Cc\&quot; - represents a CC field of message, \&quot;From\&quot; - represents a From field of message, \&quot;Subject\&quot; - represents a string in the subject of message, \&quot;InternalDate\&quot; - represents an internal date of message, \&quot;SentDate\&quot; - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \&quot;Answered\&quot; - represents an /Answered flag of message \&quot;Seen\&quot; - represents a /Seen flag of message \&quot;Flagged\&quot; - represents a /Flagged flag of message \&quot;Draft\&quot; - represents a /Draft flag of message \&quot;Deleted\&quot; - represents a Deleted/ flag of message \&quot;Recent\&quot; - represents a Deleted/ flag of message \&quot;MessageSize\&quot; - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \&quot;IsRead\&quot; - Indicates whether the message has been read \&quot;HasAttachment\&quot; - Indicates whether or not the message has attachments \&quot;IsSubmitted\&quot; - Indicates whether the message has been submitted to the Outbox \&quot;ContentClass\&quot; - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \&quot;MessageClass\&quot; - Represents a message class \&quot;ContainerClass\&quot; - Represents a folder container class \&quot;Importance\&quot; - Represents a message importance \&quot;MessageSize\&quot; - represents a size (in bytes) of message \&quot;FolderName\&quot; - represents a folder name \&quot;ContentsCount\&quot; - represents a total number of items in the folder \&quot;UnreadContentsCount\&quot; - represents the number of unread items in the folder. \&quot;Subfolders\&quot; - Indicates whether or not the folder has subfolders \&quot;Read\&quot; - the message is marked as having been read \&quot;HasAttachment\&quot; - the message has at least one attachment \&quot;Unsent\&quot; - the message is still being composed \&quot;Unmodified\&quot; - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \&quot;FromMe\&quot; - the user receiving the message was also the user who sent the message \&quot;Resend\&quot; - the message includes a request for a resend operation with a non-delivery report \&quot;NotifyRead\&quot; - the user who sent the message has requested notification when a recipient first reads it \&quot;NotifyUnread\&quot; - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \&quot;EverRead\&quot; - the message has been read at least once The field value (&lt;Field value&gt;) can take the following values: For text fields - any string, For date type fields - the string of \&quot;d-MMM-yyy\&quot; format, ex. \&quot;10-Feb-2009\&quot;, For flags (fields of boolean type) - either \&quot;True\&quot;, or \&quot;False\&quot;
439+
The query string should have the following view. The example of a simple expression: &#39;&lt;Field name&gt;&#39; &lt;Comparison operator&gt; &#39;&lt;Field value&gt;&#39;, where &amp;lt;Field Name&amp;gt; - the name of a message field through which filtering is made, &amp;lt;Comparison operator&amp;gt; - comparison operators, as their name implies, allow to compare message field and specified value, &amp;lt;Field value&amp;gt; - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (&lt;Simple expression 1&gt; &amp; &lt;Simple expression 2&gt;) | &lt;Simple expression 3 &gt;, where \&quot;&amp;amp;\&quot; - logical-AND operator, \&quot;|\&quot; - logical-OR operator At present the following values are allowed as a field name (&lt;Field name&gt;): \&quot;To\&quot; - represents a TO field of message, \&quot;Text\&quot; - represents string in the header or body of the message, \&quot;Bcc\&quot; - represents a BCC field of message, \&quot;Body\&quot; - represents a string in the body of message, \&quot;Cc\&quot; - represents a CC field of message, \&quot;From\&quot; - represents a From field of message, \&quot;Subject\&quot; - represents a string in the subject of message, \&quot;InternalDate\&quot; - represents an internal date of message, \&quot;SentDate\&quot; - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \&quot;Answered\&quot; - represents an /Answered flag of message \&quot;Seen\&quot; - represents a /Seen flag of message \&quot;Flagged\&quot; - represents a /Flagged flag of message \&quot;Draft\&quot; - represents a /Draft flag of message \&quot;Deleted\&quot; - represents a Deleted/ flag of message \&quot;Recent\&quot; - represents a Deleted/ flag of message \&quot;MessageSize\&quot; - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \&quot;IsRead\&quot; - Indicates whether the message has been read \&quot;HasAttachment\&quot; - Indicates whether or not the message has attachments \&quot;IsSubmitted\&quot; - Indicates whether the message has been submitted to the Outbox \&quot;ContentClass\&quot; - represents a content class of item The field value (&lt;Field value&gt;) can take the following values: For text fields - any string, For date type fields - the string of \&quot;d-MMM-yyy\&quot; format, ex. \&quot;10-Feb-2009\&quot;, For flags (fields of boolean type) - either \&quot;True\&quot;, or \&quot;False\&quot;
440440

441441
Returns: List of MailMessageBase objects that represent fetched message in requested format.
442442

docs/EmailClientAccount.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ EmailClientAccount emailClientAccount = Models.emailClientAccount()
2727
.refreshToken("refreshToken")
2828
.login("example@example.com")
2929
.build())
30+
.cacheFile(Models.storageFileLocation()
31+
.fileName("account.cache")
32+
.storage("First Storage")
33+
.folderPath("file/location/folder/on/storage")
34+
.build())
3035
.build();
3136
```
3237

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>aspose-email-cloud</artifactId>
55
<packaging>jar</packaging>
66
<name>aspose-email-cloud</name>
7-
<version>21.3.0.132</version>
7+
<version>21.4.0.140</version>
88
<url>https://github.com/aspose-email-cloud/aspose-email-cloud-java</url>
99
<description>Aspose.Email Cloud SDK</description>
1010
<licenses>
@@ -43,7 +43,7 @@
4343
</execution>
4444
</executions>
4545
</plugin>
46-
<plugin>
46+
<plugin>
4747
<artifactId>maven-dependency-plugin</artifactId>
4848
<executions>
4949
<execution>

0 commit comments

Comments
 (0)