Skip to content

lindar-open/dotmailer-java-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>