Package io.mailtrap.api.inboxes
Class InboxesImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.apiresource.ApiResourceWithValidation
io.mailtrap.api.inboxes.InboxesImpl
- All Implemented Interfaces:
Inboxes
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResourceWithValidation
mailtrapValidatorFields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncleanInbox(long accountId, long inboxId) Delete all messages (emails) from inboxcreateInbox(long accountId, long projectId, CreateInboxRequest request) Create an inbox in a projectdeleteInbox(long accountId, long inboxId) Delete an inbox with all its emailsenableEmailAddress(long accountId, long inboxId) Turn the email address of the inbox on/offgetInboxAttributes(long accountId, long inboxId) Get inbox attributes by inbox IDgetInboxes(long accountId) Get a list of inboxesmarkAsRead(long accountId, long inboxId) Mark all messages in the inbox as readresetCredentials(long accountId, long inboxId) Reset SMTP credentials of the inboxresetEmailAddresses(long accountId, long inboxId) Reset username of email address per inboxupdateInbox(long accountId, long inboxId, UpdateInboxRequest request) Update inbox name, inbox email usernameMethods inherited from class io.mailtrap.api.apiresource.ApiResourceWithValidation
validateRequestBodyAndThrowException
-
Constructor Details
-
InboxesImpl
-
-
Method Details
-
createInbox
Description copied from interface:InboxesCreate an inbox in a project- Specified by:
createInboxin interfaceInboxes- Parameters:
accountId- unique account IDprojectId- unique project IDrequest- inbox request data- Returns:
- the newly created inbox with its attributes
-
getInboxAttributes
Description copied from interface:InboxesGet inbox attributes by inbox ID- Specified by:
getInboxAttributesin interfaceInboxes- Parameters:
accountId- unique account IDinboxId- unique inbox ID- Returns:
- the attributes of the inbox
-
deleteInbox
Description copied from interface:InboxesDelete an inbox with all its emails- Specified by:
deleteInboxin interfaceInboxes- Parameters:
accountId- unique account IDinboxId- unique inbox ID- Returns:
- the attributes of the deleted inbox
-
updateInbox
Description copied from interface:InboxesUpdate inbox name, inbox email username- Specified by:
updateInboxin interfaceInboxes- Parameters:
accountId- unique account IDinboxId- unique inbox IDrequest- request data- Returns:
- the attributes of the updated inbox
-
cleanInbox
Description copied from interface:InboxesDelete all messages (emails) from inbox- Specified by:
cleanInboxin interfaceInboxes- Parameters:
accountId- unique account IDinboxId- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox.
-
markAsRead
Description copied from interface:InboxesMark all messages in the inbox as read- Specified by:
markAsReadin interfaceInboxes- Parameters:
accountId- unique account IDinboxId- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox
-
resetCredentials
Description copied from interface:InboxesReset SMTP credentials of the inbox- Specified by:
resetCredentialsin interfaceInboxes- Parameters:
accountId- unique account IDinboxId- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox
-
enableEmailAddress
Description copied from interface:InboxesTurn the email address of the inbox on/off- Specified by:
enableEmailAddressin interfaceInboxes- Parameters:
accountId- unique account IDinboxId- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox
-
resetEmailAddresses
Description copied from interface:InboxesReset username of email address per inbox- Specified by:
resetEmailAddressesin interfaceInboxes- Parameters:
accountId- unique account IDinboxId- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox
-
getInboxes
Description copied from interface:InboxesGet a list of inboxes- Specified by:
getInboxesin interfaceInboxes- Parameters:
accountId- unique account ID- Returns:
- the list of inboxes in the account to which the API token has access. permissions returns the permissions of the token for the inbox
-