Zimbra Api | Coderz Product

zimbra_api

Last updated:

0 purchases

zimbra_api Image
zimbra_api Images

Free

Languages

Categories

Add to Cart

Description:

zimbra api

Zimbra SOAP client library in Dart language #
This library is a simple Object Oriented wrapper for the Zimbra SOAP API.
Features #

Support zimbraAccount SOAP API
Support zimbraMail SOAP API
Support upload service

Getting started #
In your Dart or flutter project add the dependency:
dependencies:
...
zimbra_api:
copied to clipboard
Usage #
Authentication #
Authentication by account name.
final api = MailApi('mail.domain.com');
final response = await api.authByAccountName('name@domain.com', 'password');
if (response != null) {
final authToken = response.authToken;
}
copied to clipboard
Authentication by auth token which auth token can obtain from previous authentication.
final api = MailApi('mail.domain.com');
final response = await api.authByToken('auth token');
copied to clipboard
Authentication by preauth which preauth key can obtain from zmprov generateDomainPreAuthKey command
final api = MailApi('mail.domain.com');
final response = await api.authByPreauth('name@domain.com', 'preauth key');
if (response != null) {
final authToken = response.authToken;
}
copied to clipboard
Basic Usage #

Create api instance from one of Account & Mail API.
Authentication with api.auth() method.
From api object, you can access to Account & Mail API.

Example: Search messages has attachment in Inbox
final api = MailApi('mail.domain.com');
final response = await api.authByAccountName('name@domain.com', 'password');
if (response != null) {
final query = 'in:inbox has:attachment';
final searchResponse = await api.search(query: query, searchTypes: 'message');
final messages = searchResponse.messageHits;
}
copied to clipboard
Licensing #
BSD 3-Clause
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.