module Drafts: sig .. end
module Format: sig .. end
val create : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
userId:string ->
GapiGmailV1Model.Draft.t ->
GapiConversation.Session.t ->
GapiGmailV1Model.Draft.t * GapiConversation.Session.t
Creates a new draft with the DRAFT label.
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 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 draft. Does not simply trash it.
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 draft to delete.
val get : ?base_url:string ->
?etag:string ->
?std_params:GapiService.StandardParameters.t ->
?format:Format.t ->
userId:string ->
id:string ->
GapiConversation.Session.t ->
GapiGmailV1Model.Draft.t * GapiConversation.Session.t
Gets the specified draft.
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 draft in.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
id : The ID of the draft to retrieve.
val list : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?maxResults:int ->
?pageToken:string ->
userId:string ->
GapiConversation.Session.t ->
GapiGmailV1Model.ListDraftsResponse.t * GapiConversation.Session.t
Lists the drafts 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.
maxResults : Maximum number of drafts to return.
pageToken : Page token to retrieve a specific page of results in the list.
userId : The user's email address. The special value me can be used to indicate the authenticated user.
val send : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
userId:string ->
GapiGmailV1Model.Draft.t ->
GapiConversation.Session.t ->
GapiGmailV1Model.Message.t * GapiConversation.Session.t
Sends the specified, existing draft 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 update : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
userId:string ->
id:string ->
GapiGmailV1Model.Draft.t ->
GapiConversation.Session.t ->
GapiGmailV1Model.Draft.t * GapiConversation.Session.t
Replaces a draft's content.
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 draft to update.