Drafts

public final class Drafts extends Resource<Draft>

Constructors

Link copied to clipboard
public Drafts Drafts(NylasClient client)

Functions

Link copied to clipboard
public final Response<Draft> create(String identifier, CreateDraftRequest requestBody)
public final Response<Draft> create(String identifier, CreateDraftRequest requestBody, RequestOverrides overrides)

Create a Draft

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

Delete a Draft

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

Return a Draft

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

Return all Drafts

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

Send a Draft

Link copied to clipboard
public final Response<Draft> update(String identifier, String draftId, UpdateDraftRequest requestBody)
public final Response<Draft> update(String identifier, String draftId, UpdateDraftRequest requestBody, RequestOverrides overrides)

Update a Draft