UsersDraftsResourceApi class

Constructors

UsersDraftsResourceApi(ApiRequester client)

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

create(Draft request, String userId, { String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia }) → Future<Draft>
Creates a new draft with the DRAFT label. [...]
delete(String userId, { String id, { String $fields }) → Future
Immediately and permanently deletes the specified draft. Does not simply trash it. [...]
get(String userId, { String id, { String format String $fields }) → Future<Draft>
Gets the specified draft. [...]
list(String userId, { bool includeSpamTrash, int maxResults, String pageToken String q String $fields }) → Future<ListDraftsResponse>
Lists the drafts in the user's mailbox. [...]
send(Draft request, String userId, { String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia }) → Future<Message>
Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers. [...]
update(Draft request, String userId, { String id, { String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia }) → Future<Draft>
Replaces a draft's content. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited