UsersMessagesResourceApi class

Constructors

UsersMessagesResourceApi(ApiRequester client)

Properties

attachments UsersMessagesAttachmentsResourceApi
read-only
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

batchDelete(BatchDeleteMessagesRequest request, String userId, {String $fields}) Future
Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all. [...]
batchModify(BatchModifyMessagesRequest request, String userId, {String $fields}) Future
Modifies the labels on the specified messages. [...]
delete(String userId, String id, {String $fields}) Future
Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead. [...]
get(String userId, String id, {String format, List<String> metadataHeaders, String $fields}) Future<Message>
Gets the specified message. [...]
import(Message request, String userId, {bool deleted, String internalDateSource, bool neverMarkSpam, bool processForCalendar, String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia}) Future<Message>
Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message. [...]
insert(Message request, String userId, {bool deleted, String internalDateSource, String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia}) Future<Message>
Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message. [...]
list(String userId, {bool includeSpamTrash, List<String> labelIds, int maxResults, String pageToken, String q, String $fields}) Future<ListMessagesResponse>
Lists the messages in the user's mailbox. [...]
modify(ModifyMessageRequest request, String userId, String id, {String $fields}) Future<Message>
Modifies the labels on the specified message. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
send(Message request, String userId, {String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia}) Future<Message>
Sends the specified message to the recipients in the To, Cc, and Bcc headers. [...]
toString() String
Returns a string representation of this object.
inherited
trash(String userId, String id, {String $fields}) Future<Message>
Moves the specified message to the trash. [...]
untrash(String userId, String id, {String $fields}) Future<Message>
Removes the specified message from the trash. [...]

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited