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 |
Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
See: Gmail API Reference for gmail.users.drafts.send
.
Synopsis
- type UsersDraftsSendResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> ("send" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Draft :> Post '[JSON] Message)))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> ("send" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Draft :> Post '[JSON] Message))))))))))
- usersDraftsSend :: Draft -> UsersDraftsSend
- data UsersDraftsSend
- udsPayload :: Lens' UsersDraftsSend Draft
- udsUserId :: Lens' UsersDraftsSend Text
REST Resource
type UsersDraftsSendResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> ("send" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Draft :> Post '[JSON] Message)))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> ("send" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Draft :> Post '[JSON] Message)))))))))) Source #
A resource alias for gmail.users.drafts.send
method which the
UsersDraftsSend
request conforms to.
Creating a Request
Creates a value of UsersDraftsSend
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersDraftsSend Source #
Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
See: usersDraftsSend
smart constructor.
Instances
Request Lenses
udsPayload :: Lens' UsersDraftsSend Draft Source #
Multipart request metadata.