Module GapiGmailV1Service.UsersResource.Messages

module Messages: sig .. end

module Attachments: sig .. end
module InternalDateSource: sig .. end
module Format: sig .. end
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.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/gmail/v1/users/").
std_params : Optional standard parameters.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
id : The ID of the message to delete.
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.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/gmail/v1/users/").
etag : Optional ETag.
std_params : Optional standard parameters.
format : The format to return the message in.
metadataHeaders : When given and format is METADATA, only include headers specified.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
id : The ID of the message to retrieve.
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.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/gmail/v1/users/").
std_params : Optional standard parameters.
deleted : Mark the email as permanently deleted (not TRASH) and only visible in Google Apps Vault to a Vault administrator. Only used for Google Apps for Work accounts.
internalDateSource : Source for Gmail's internal date of the message.
neverMarkSpam : Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.
processForCalendar : Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
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.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/gmail/v1/users/").
std_params : Optional standard parameters.
deleted : Mark the email as permanently deleted (not TRASH) and only visible in Google Apps Vault to a Vault administrator. Only used for Google Apps for Work accounts.
internalDateSource : Source for Gmail's internal date of the message.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
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.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/gmail/v1/users/").
std_params : Optional standard parameters.
includeSpamTrash : Include messages from SPAM and TRASH in the results.
maxResults : Maximum number of messages to return.
labelIds : Only return messages with labels that match all of the specified label IDs.
pageToken : Page token to retrieve a specific page of results in the list.
q : Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser
userId : The user's email address. The special value me can be used to indicate the authenticated user.
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.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/gmail/v1/users/").
std_params : Optional standard parameters.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
id : The ID of the message to modify.
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.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/gmail/v1/users/").
std_params : Optional standard parameters.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
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.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/gmail/v1/users/").
std_params : Optional standard parameters.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
id : The ID of the message to 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.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/gmail/v1/users/").
std_params : Optional standard parameters.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
id : The ID of the message to remove from Trash.