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

Contents

Description

Gets the specified draft.

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

Synopsis

REST Resource

type UsersDraftsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "format" UsersDraftsGetFormat :> (QueryParam "alt" AltJSON :> Get `[JSON]` Draft))))))) Source

A resource alias for gmail.users.drafts.get method which the UsersDraftsGet request conforms to.

Creating a Request

usersDraftsGet Source

Arguments

:: Text

udgId

-> Text 
-> UsersDraftsGet 

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

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

Request Lenses

udgFormat :: Lens' UsersDraftsGet UsersDraftsGetFormat Source

The format to return the draft in.

udgUserId :: Lens' UsersDraftsGet Text Source

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

udgId :: Lens' UsersDraftsGet Text Source

The ID of the draft to retrieve.