Package com.dnsimple.endpoints
Class Contacts
java.lang.Object
com.dnsimple.endpoints.Contacts
Provides access to the DNSimple Contacts API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContact(Number account, ContactOptions options) Create a contact in the account.deleteContact(Number account, Number contactId) Delete a contact from the account.getContact(Number account, Number contactId) Get a specific contact associated to an account using the contacts's ID.listContacts(Number account) Lists the contacts in the account.listContacts(Number account, ListOptions options) Lists the contacts in the account.updateContact(Number account, Number contactId, ContactOptions options) Update a contact in the account.
-
Constructor Details
-
Contacts
-
-
Method Details
-
listContacts
Lists the contacts in the account.- Parameters:
account- The account ID- Returns:
- The list contacts response
- See Also:
-
listContacts
Lists the contacts in the account.- Parameters:
account- The account IDoptions- The options for the list request- Returns:
- The list contacts response
- See Also:
-
createContact
Create a contact in the account.- Parameters:
account- The account IDoptions- options to create the new contact- Returns:
- The create contact response
- See Also:
-
getContact
Get a specific contact associated to an account using the contacts's ID.- Parameters:
account- The account IDcontactId- The contact ID- Returns:
- The get contact response
- See Also:
-
updateContact
public SimpleResponse<Contact> updateContact(Number account, Number contactId, ContactOptions options) Update a contact in the account.- Parameters:
account- The account IDcontactId- The contact IDoptions- options to update the contact- Returns:
- The update contact response
- See Also:
-
deleteContact
Delete a contact from the account.- Parameters:
account- The account IDcontactId- The contact ID- Returns:
- The delete contact response
- See Also:
-