Package africa.sendbyte.emails
Class Emails
java.lang.Object
africa.sendbyte.emails.Emails
The Emails resource: send transactional emails and read them back.
Obtain an instance via client.emails(). Every method has a blocking
form and an ...Async form returning a CompletableFuture.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a single email by id, including its rendered body and full event timeline.Asynchronousget(String).list()List sent emails, newest-first, using default paging.list(ListEmailsParams params) List sent emails with optional filtering and cursor pagination.listAsync(ListEmailsParams params) Asynchronouslist(ListEmailsParams).send(SendEmailRequest request) Send a transactional email.sendAsync(SendEmailRequest request) Asynchronoussend(SendEmailRequest).
-
Constructor Details
-
Emails
-
-
Method Details
-
send
Send a transactional email.- Returns:
- the created
Email(initiallyqueued); storeEmail.getId()to look it up later.
-
sendAsync
Asynchronoussend(SendEmailRequest). -
get
Retrieve a single email by id, including its rendered body and full event timeline. -
getAsync
Asynchronousget(String). -
list
List sent emails, newest-first, using default paging. -
list
List sent emails with optional filtering and cursor pagination. -
listAsync
Asynchronouslist(ListEmailsParams).
-