Package io.mailtrap.api.contactlists
Interface ContactLists
- All Known Implementing Classes:
ContactListsImpl
public interface ContactLists
-
Method Summary
Modifier and TypeMethodDescriptioncreateContactList(long accountId, ContactListRequest request) Create new Contact ListvoiddeleteContactList(long accountId, long contactListId) Delete existing Contact ListfindAll(long accountId) Get all contact lists existing in accountfindAll(long accountId, ListContactListsQueryParams queryParams) Get all contact lists existing in account, optionally filtered by name.getContactList(long accountId, long contactListId) Get a contact list by IDupdateContactList(long accountId, long contactListId, ContactListRequest request) Update existing Contact List
-
Method Details
-
findAll
Get all contact lists existing in account- Parameters:
accountId- unique account ID- Returns:
- contacts list
-
findAll
Get all contact lists existing in account, optionally filtered by name.- Parameters:
accountId- unique account IDqueryParams- additional query parameters. Thesearchvalue filters contact lists by name using a case-insensitive prefix match- Returns:
- contacts list
-
createContactList
Create new Contact List- Parameters:
accountId- unique account IDrequest- body- Returns:
- created contact list
-
getContactList
Get a contact list by ID- Parameters:
accountId- unique account IDcontactListId- unique contact list ID- Returns:
- found contact list
-
updateContactList
ContactListResponse updateContactList(long accountId, long contactListId, ContactListRequest request) Update existing Contact List- Parameters:
accountId- unique account IDcontactListId- unique contact list IDrequest- body- Returns:
- updated contact list
-
deleteContactList
void deleteContactList(long accountId, long contactListId) Delete existing Contact List- Parameters:
accountId- unique account IDcontactListId- unique contact list ID
-