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

Contents

Description

Gets the specified message.

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

Synopsis

REST Resource

type UsersMessagesGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "id" Text :> (QueryParam "format" UsersMessagesGetFormat :> (QueryParams "metadataHeaders" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` Message)))))))) Source

A resource alias for gmail.users.messages.get method which the UsersMessagesGet request conforms to.

Creating a Request

usersMessagesGet Source

Arguments

:: Text

umgId

-> Text 
-> UsersMessagesGet 

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

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

Request Lenses

umgFormat :: Lens' UsersMessagesGet UsersMessagesGetFormat Source

The format to return the message in.

umgUserId :: Lens' UsersMessagesGet Text Source

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

umgId :: Lens' UsersMessagesGet Text Source

The ID of the message to retrieve.

umgMetadataHeaders :: Lens' UsersMessagesGet [Text] Source

When given and format is METADATA, only include headers specified.