nylas
2.2.0
jvm
nylas
/
com.nylas.resources
/
Drafts
Drafts
public
final
class
Drafts
extends
Resource
<
Draft
>
Members
Constructors
Drafts
Link copied to clipboard
public
Drafts
Drafts
(
NylasClient
client
)
Functions
create
Link copied to clipboard
public
final
Response
<
Draft
>
create
(
String
identifier
,
CreateDraftRequest
requestBody
)
Create a Draft
destroy
Link copied to clipboard
public
final
DeleteResponse
destroy
(
String
identifier
,
String
draftId
)
Delete a Draft
find
Link copied to clipboard
public
final
Response
<
Draft
>
find
(
String
identifier
,
String
draftId
)
Return a Draft
list
Link copied to clipboard
@
JvmOverloads
(
)
public
final
ListResponse
<
Draft
>
list
(
String
identifier
)
@
JvmOverloads
(
)
public
final
ListResponse
<
Draft
>
list
(
String
identifier
,
ListDraftsQueryParams
queryParams
)
Return all Drafts
send
Link copied to clipboard
public
final
Response
<
Message
>
send
(
String
identifier
,
String
draftId
)
Send a Draft
update
Link copied to clipboard
public
final
Response
<
Draft
>
update
(
String
identifier
,
String
draftId
,
UpdateDraftRequest
requestBody
)
Update a Draft