Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets the specified message.
See: Gmail API Reference for gmail.users.messages.get
.
Synopsis
- type UsersMessagesGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "id" Text :> (QueryParam "format" UsersMessagesGetFormat :> (QueryParams "metadataHeaders" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Message))))))))
- usersMessagesGet :: Text -> UsersMessagesGet
- data UsersMessagesGet
- umgFormat :: Lens' UsersMessagesGet UsersMessagesGetFormat
- umgUserId :: Lens' UsersMessagesGet Text
- umgId :: Lens' UsersMessagesGet Text
- umgMetadataHeaders :: Lens' UsersMessagesGet [Text]
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
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:
data UsersMessagesGet Source #
Gets the specified message.
See: usersMessagesGet
smart constructor.
Instances
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.
umgMetadataHeaders :: Lens' UsersMessagesGet [Text] Source #
When given and format is METADATA, only include headers specified.