UsersResource.Messages
module Attachments : sig ... end
module InternalDateSource : sig ... end
module Format : sig ... end
val batchDelete :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
userId:string ->
GapiGmailV1Model.BatchDeleteMessagesRequest.t ->
GapiConversation.Session.t ->
unit * GapiConversation.Session.t
Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.
val batchModify :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
userId:string ->
GapiGmailV1Model.BatchModifyMessagesRequest.t ->
GapiConversation.Session.t ->
unit * GapiConversation.Session.t
Modifies the labels on the specified messages.
val delete :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
userId:string ->
id:string ->
GapiConversation.Session.t ->
unit * GapiConversation.Session.t
Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.
val get :
?base_url:string ->
?etag:string ->
?std_params:GapiService.StandardParameters.t ->
?format:Format.t ->
?metadataHeaders:string list ->
userId:string ->
id:string ->
GapiConversation.Session.t ->
GapiGmailV1Model.Message.t * GapiConversation.Session.t
Gets the specified message.
val import :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
?deleted:bool ->
?internalDateSource:InternalDateSource.t ->
?neverMarkSpam:bool ->
?processForCalendar:bool ->
userId:string ->
GapiGmailV1Model.Message.t ->
GapiConversation.Session.t ->
GapiGmailV1Model.Message.t * GapiConversation.Session.t
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.
val insert :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
?deleted:bool ->
?internalDateSource:InternalDateSource.t ->
userId:string ->
GapiGmailV1Model.Message.t ->
GapiConversation.Session.t ->
GapiGmailV1Model.Message.t * GapiConversation.Session.t
Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.
val list :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?includeSpamTrash:bool ->
?maxResults:int ->
?labelIds:string list ->
?pageToken:string ->
?q:string ->
userId:string ->
GapiConversation.Session.t ->
GapiGmailV1Model.ListMessagesResponse.t * GapiConversation.Session.t
Lists the messages in the user's mailbox.
val modify :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
userId:string ->
id:string ->
GapiGmailV1Model.ModifyMessageRequest.t ->
GapiConversation.Session.t ->
GapiGmailV1Model.Message.t * GapiConversation.Session.t
Modifies the labels on the specified message.
val send :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
userId:string ->
GapiGmailV1Model.Message.t ->
GapiConversation.Session.t ->
GapiGmailV1Model.Message.t * GapiConversation.Session.t
Sends the specified message to the recipients in the To, Cc, and Bcc headers.
val trash :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
userId:string ->
id:string ->
GapiConversation.Session.t ->
GapiGmailV1Model.Message.t * GapiConversation.Session.t
Moves the specified message to the trash.
val untrash :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
userId:string ->
id:string ->
GapiConversation.Session.t ->
GapiGmailV1Model.Message.t * GapiConversation.Session.t
Removes the specified message from the trash.