Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 928 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 928 Bytes

dotmailer-java-client

Dotmailer API client written in Java 8.

Some Examples (more to come):

Get Account Info

Result<AccountInfo> accountInfo = Dotmailer.build(username, pass).accountInfo().get();

List Address Books or Get a specific Address Book

Result<List<AddressBook>> addressBooks = Dotmailer.build(username, pass).addressBook().list();
Result<AddressBook> addressBook = Dotmailer.build(username, pass).addressBook().get(addressBookId);

List Address Books Contacts

Result<List<Contact>> addressBooks = Dotmailer.build(username, pass).addressBook().listContacts(addressBookId);

Note: Almost all methods return an empty optional object when the account doesn't exist or dotmailer's API couldn't be contacted.

Usage:

<dependency>
    <groupId>com.lindar</groupId>
    <artifactId>dotmailer-client</artifactId>
    <version>1.0.0</version>
</dependency>