The CreateAddressBook method creates an address book in your dotMailer account.
This method can be used when you need to create an address book on the fly instead of having to rely on an address book which already exists within the dotMailer system.
Guidance Notes
The name cannot be the name of an already existing address book or one of the reserved address books such as Test or All contacts.
Parameters
| username |
string |
This is the username from your API key. It is in the format of an email address and will look similar to apiuser-908709770324@apiconnector.com |
required |
| password |
string |
This is the password from your API key. |
required |
| book |
book |
This is an address book object; it includes an ID (integer) and a name (string). Only the name is required as the ID will be automatically generated for you upon creation. |
partially required |
Return values
| book |
book |
This is an address book object; it includes the generated ID (integer) and the name (string) provided. |