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.Create

Contents

Description

Creates a new draft with the DRAFT label.

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

Synopsis

REST Resource

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

A resource alias for gmail.users.drafts.create method which the UsersDraftsCreate request conforms to.

Creating a Request

usersDraftsCreate Source

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

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

Request Lenses

udcPayload :: Lens' UsersDraftsCreate Draft Source

Multipart request metadata.

udcUserId :: Lens' UsersDraftsCreate Text Source

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