UsersMessagesResource class
Methods
-
batchDelete(BatchDeleteMessagesRequest request, String userId, {String? $fields})
→ Future<void>
-
Deletes many messages by message ID.
-
batchModify(BatchModifyMessagesRequest request, String userId, {String? $fields})
→ Future<void>
-
Modifies the labels on the specified messages.
-
delete(String userId, String id, {String? $fields})
→ Future<void>
-
Immediately and permanently deletes the specified message.
-
get(String userId, String id, {String? format, 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.defaultOptions, 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.
-
insert(Message request, String userId, {bool? deleted, String? internalDateSource, String? $fields, UploadOptions uploadOptions = commons.UploadOptions.defaultOptions, Media? uploadMedia})
→ Future<Message>
-
Directly inserts a message into only this user's mailbox similar to
IMAP APPEND
, bypassing most scanning and classification.
-
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 nonexistent method or property is accessed.
inherited
-
send(Message request, String userId, {String? $fields, UploadOptions uploadOptions = commons.UploadOptions.defaultOptions, Media? uploadMedia})
→ Future<Message>
-
Sends the specified message to the recipients in the
To
, Cc
, and Bcc
headers.
-
toString()
→ String
-
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.