| 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 |
Network.Google.Resource.Gmail.Users.Messages.Send
Description
Sends the specified message to the recipients in the To, Cc, and Bcc headers.
See: Gmail API Reference for gmail.users.messages.send.
Synopsis
- type UsersMessagesSendResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("send" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Post '[JSON] Message)))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("send" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Message :> Post '[JSON] Message))))))))))
- usersMessagesSend :: Message -> UsersMessagesSend
- data UsersMessagesSend
- umsPayload :: Lens' UsersMessagesSend Message
- umsUserId :: Lens' UsersMessagesSend Text
REST Resource
type UsersMessagesSendResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("send" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Post '[JSON] Message)))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("send" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Message :> Post '[JSON] Message)))))))))) Source #
A resource alias for gmail.users.messages.send method which the
UsersMessagesSend request conforms to.
Creating a Request
Arguments
| :: Message | |
| -> UsersMessagesSend |
Creates a value of UsersMessagesSend with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersMessagesSend Source #
Sends the specified message to the recipients in the To, Cc, and Bcc headers.
See: usersMessagesSend smart constructor.
Instances
Request Lenses
umsPayload :: Lens' UsersMessagesSend Message Source #
Multipart request metadata.