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 attachment.
See: Gmail API Reference for gmail.users.messages.attachments.get
.
Synopsis
- type UsersMessagesAttachmentsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "messageId" Text :> ("attachments" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] MessagePartBody))))))))
- usersMessagesAttachmentsGet :: Text -> Text -> UsersMessagesAttachmentsGet
- data UsersMessagesAttachmentsGet
- umagUserId :: Lens' UsersMessagesAttachmentsGet Text
- umagId :: Lens' UsersMessagesAttachmentsGet Text
- umagMessageId :: Lens' UsersMessagesAttachmentsGet Text
REST Resource
type UsersMessagesAttachmentsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "messageId" Text :> ("attachments" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] MessagePartBody)))))))) Source #
A resource alias for gmail.users.messages.attachments.get
method which the
UsersMessagesAttachmentsGet
request conforms to.
Creating a Request
usersMessagesAttachmentsGet Source #
Creates a value of UsersMessagesAttachmentsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersMessagesAttachmentsGet Source #
Gets the specified message attachment.
See: usersMessagesAttachmentsGet
smart constructor.
Instances
Request Lenses
umagUserId :: Lens' UsersMessagesAttachmentsGet Text Source #
The user's email address. The special value me can be used to indicate the authenticated user.
umagMessageId :: Lens' UsersMessagesAttachmentsGet Text Source #
The ID of the message containing the attachment.