public interface Contacts
| Modifier and Type | Method and Description |
|---|---|
CreateContactResponse |
createContact(String accountId,
Map<String,Object> attributes)
Create a contact in the account.
|
DeleteContactResponse |
deleteContact(String accountId,
String contactId)
Delete a contact from the account.
|
GetContactResponse |
getContact(String accountId,
String contactId)
Get a specific contact associated to an account using the contacts's ID.
|
ListContactsResponse |
listContacts(String accountId)
Lists the contacts in the account.
|
ListContactsResponse |
listContacts(String accountId,
Map<String,Object> options)
Lists the contacts in the account.
|
UpdateContactResponse |
updateContact(String accountId,
String contactId,
Map<String,Object> attributes)
Update a contact in the account.
|
ListContactsResponse listContacts(String accountId) throws DnsimpleException, IOException
accountId - The account IDDnsimpleException - Any API errorsIOException - Any IO errorsListContactsResponse listContacts(String accountId, Map<String,Object> options) throws DnsimpleException, IOException
accountId - The account IDoptions - A Map of options to pass to the contacts APIDnsimpleException - Any API errorsIOException - Any IO errorsGetContactResponse getContact(String accountId, String contactId) throws DnsimpleException, IOException
accountId - The account IDcontactId - The contact IDDnsimpleException - Any API errorsIOException - Any IO errorsCreateContactResponse createContact(String accountId, Map<String,Object> attributes) throws DnsimpleException, IOException
accountId - The account IDattributes - A map of attributes to contruct the contactDnsimpleException - Any API errorsIOException - Any IO errorsUpdateContactResponse updateContact(String accountId, String contactId, Map<String,Object> attributes) throws DnsimpleException, IOException
accountId - The account IDcontactId - The contact IDattributes - A map of attributes to update the contactDnsimpleException - Any API errorsIOException - Any IO errorsDeleteContactResponse deleteContact(String accountId, String contactId) throws DnsimpleException, IOException
accountId - The account IDcontactId - The contact IDDnsimpleException - Any API errorsIOException - Any IO errorsCopyright © 2017 DNSimple. All rights reserved.