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

Contents

Description

Lists the drafts in the user's mailbox.

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

Synopsis

REST Resource

type UsersDraftsListResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get `[JSON]` ListDraftsResponse))))))) Source

A resource alias for gmail.users.drafts.list method which the UsersDraftsList request conforms to.

Creating a Request

usersDraftsList :: Text -> UsersDraftsList Source

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

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

Request Lenses

udlUserId :: Lens' UsersDraftsList Text Source

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

udlPageToken :: Lens' UsersDraftsList (Maybe Text) Source

Page token to retrieve a specific page of results in the list.

udlMaxResults :: Lens' UsersDraftsList Word32 Source

Maximum number of drafts to return.