| Constructor and Description |
|---|
ContactsEndpoint(HttpEndpointClient client) |
| 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.
|
public ContactsEndpoint(HttpEndpointClient client)
public ListContactsResponse listContacts(String accountId) throws DnsimpleException, IOException
ContactslistContacts in interface ContactsaccountId - The account IDDnsimpleException - Any API errorsIOException - Any IO errorspublic ListContactsResponse listContacts(String accountId, Map<String,Object> options) throws DnsimpleException, IOException
ContactslistContacts in interface ContactsaccountId - The account IDoptions - A Map of options to pass to the contacts APIDnsimpleException - Any API errorsIOException - Any IO errorspublic GetContactResponse getContact(String accountId, String contactId) throws DnsimpleException, IOException
ContactsgetContact in interface ContactsaccountId - The account IDcontactId - The contact IDDnsimpleException - Any API errorsIOException - Any IO errorspublic CreateContactResponse createContact(String accountId, Map<String,Object> attributes) throws DnsimpleException, IOException
ContactscreateContact in interface ContactsaccountId - The account IDattributes - A map of attributes to contruct the contactDnsimpleException - Any API errorsIOException - Any IO errorspublic UpdateContactResponse updateContact(String accountId, String contactId, Map<String,Object> attributes) throws DnsimpleException, IOException
ContactsupdateContact in interface ContactsaccountId - The account IDcontactId - The contact IDattributes - A map of attributes to update the contactDnsimpleException - Any API errorsIOException - Any IO errorspublic DeleteContactResponse deleteContact(String accountId, String contactId) throws DnsimpleException, IOException
ContactsdeleteContact in interface ContactsaccountId - The account IDcontactId - The contact IDDnsimpleException - Any API errorsIOException - Any IO errorsCopyright © 2017 DNSimple. All rights reserved.