Google Apps Script API
Preparing search index...
google-apps-script-events
GoogleAppsScript
Gmail
Collection
Users
DraftsCollection
Interface DraftsCollection
interface
DraftsCollection
{
create
(
resource
:
Draft
,
userId
:
string
)
:
Draft
;
create
(
resource
:
Draft
,
userId
:
string
,
mediaData
:
any
)
:
Draft
;
get
(
userId
:
string
,
id
:
string
)
:
Draft
;
get
(
userId
:
string
,
id
:
string
,
optionalArgs
:
object
)
:
Draft
;
list
(
userId
:
string
)
:
ListDraftsResponse
;
list
(
userId
:
string
,
optionalArgs
:
object
)
:
ListDraftsResponse
;
remove
(
userId
:
string
,
id
:
string
)
:
void
;
send
(
resource
:
Draft
,
userId
:
string
)
:
Message
;
send
(
resource
:
Draft
,
userId
:
string
,
mediaData
:
any
)
:
Message
;
update
(
resource
:
Draft
,
userId
:
string
,
id
:
string
)
:
Draft
;
update
(
resource
:
Draft
,
userId
:
string
,
id
:
string
,
mediaData
:
any
)
:
Draft
;
}
Index
Methods
create
get
list
remove
send
update
Methods
create
create
(
resource
:
Draft
,
userId
:
string
)
:
Draft
Parameters
resource
:
Draft
userId
:
string
Returns
Draft
create
(
resource
:
Draft
,
userId
:
string
,
mediaData
:
any
)
:
Draft
Parameters
resource
:
Draft
userId
:
string
mediaData
:
any
Returns
Draft
get
get
(
userId
:
string
,
id
:
string
)
:
Draft
Parameters
userId
:
string
id
:
string
Returns
Draft
get
(
userId
:
string
,
id
:
string
,
optionalArgs
:
object
)
:
Draft
Parameters
userId
:
string
id
:
string
optionalArgs
:
object
Returns
Draft
list
list
(
userId
:
string
)
:
ListDraftsResponse
Parameters
userId
:
string
Returns
ListDraftsResponse
list
(
userId
:
string
,
optionalArgs
:
object
)
:
ListDraftsResponse
Parameters
userId
:
string
optionalArgs
:
object
Returns
ListDraftsResponse
remove
remove
(
userId
:
string
,
id
:
string
)
:
void
Parameters
userId
:
string
id
:
string
Returns
void
send
send
(
resource
:
Draft
,
userId
:
string
)
:
Message
Parameters
resource
:
Draft
userId
:
string
Returns
Message
send
(
resource
:
Draft
,
userId
:
string
,
mediaData
:
any
)
:
Message
Parameters
resource
:
Draft
userId
:
string
mediaData
:
any
Returns
Message
update
update
(
resource
:
Draft
,
userId
:
string
,
id
:
string
)
:
Draft
Parameters
resource
:
Draft
userId
:
string
id
:
string
Returns
Draft
update
(
resource
:
Draft
,
userId
:
string
,
id
:
string
,
mediaData
:
any
)
:
Draft
Parameters
resource
:
Draft
userId
:
string
id
:
string
mediaData
:
any
Returns
Draft
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
get
list
remove
send
update
Google Apps Script API
Loading...