Some Examples (more to come):

Get Account Info

Optional<AccountInfo> accountInfo =, pass).accountInfo().get();


List Address Books or Get a specific Address Book

Optional<List<AddressBook>> addressBooks =, pass).addressBook().list();
Optional<AddressBook> addressBook =, pass).addressBook().get(addressBookId);


List Address Books Contacts

Optional<List<Contact>> addressBooks =, 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.