Messages

public final class Messages extends Resource<Message>

Constructors

Link copied to clipboard
public Messages Messages(NylasClient client)

Functions

Link copied to clipboard

Remove extra information from a list of messages

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

Delete a Message

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

Return a Message

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

Retrieve a scheduled message

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

Return all Messages

Link copied to clipboard

Retrieve your scheduled messages

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

Send an email

Link copied to clipboard
public final SmartCompose smartCompose()

Access the Smart Compose collection of endpoints

Link copied to clipboard
public final Response<StopScheduledMessageResponse> stopScheduledMessage(String identifier, String scheduleId, RequestOverrides overrides)

Stop a scheduled message

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

Update a Message