Messages

public final class Messages extends Resource<Message>

Constructors

Link copied to clipboard
public Messages Messages(NylasClient client)

Functions

Link copied to clipboard
public final DeleteResponse destroy(String identifier, String messageId)

Delete a Message

Link copied to clipboard
public final Response<Message> find(String identifier, String messageId)

Return a Message

Link copied to clipboard
public final Response<ScheduledMessage> findScheduledMessage(String identifier, String scheduleId)

Retrieve a scheduled message

Link copied to clipboard
public final ListResponse<Message> list(String identifier)
public final ListResponse<Message> list(String identifier, ListMessagesQueryParams queryParams)

Return all Messages

Link copied to clipboard

Retrieve your scheduled messages

Link copied to clipboard
public final Response<Message> send(String identifier, SendMessageRequest requestBody)

Send an email

Link copied to clipboard
public final SmartCompose smartCompose()

Access the Smart Compose collection of endpoints

Link copied to clipboard

Stop a scheduled message

Link copied to clipboard
public final Response<Message> update(String identifier, String messageId, UpdateMessageRequest requestBody)

Update a Message