UsersMessagesResourceApi class
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 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. [...]
-
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. [...]
-
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. [...]
-
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