gogol-gmail-0.0.1: Google Gmail SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Gmail.Users.Drafts.Send

Contents

Description

Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.

See: Gmail API Reference for gmail.users.drafts.send.

Synopsis

REST Resource

type UsersDraftsSendResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> ("send" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Draft :> Post `[JSON]` Message)))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> ("send" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (MultipartRelated `[JSON]` Draft RequestBody :> Post `[JSON]` Message)))))))))) Source

A resource alias for gmail.users.drafts.send method which the UsersDraftsSend request conforms to.

Creating a Request

usersDraftsSend Source

Creates a value of UsersDraftsSend with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

udsPayload :: Lens' UsersDraftsSend Draft Source

Multipart request metadata.

udsUserId :: Lens' UsersDraftsSend Text Source

The user's email address. The special value me can be used to indicate the authenticated user.