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 |
Creates a new draft with the DRAFT label.
See: Gmail API Reference for gmail.users.drafts.create
.
Synopsis
- type UsersDraftsCreateResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Draft :> Post '[JSON] Draft))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Draft :> Post '[JSON] Draft)))))))))
- usersDraftsCreate :: Draft -> UsersDraftsCreate
- data UsersDraftsCreate
- udcPayload :: Lens' UsersDraftsCreate Draft
- udcUserId :: Lens' UsersDraftsCreate Text
REST Resource
type UsersDraftsCreateResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Draft :> Post '[JSON] Draft))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Draft :> Post '[JSON] Draft))))))))) Source #
A resource alias for gmail.users.drafts.create
method which the
UsersDraftsCreate
request conforms to.
Creating a Request
Creates a value of UsersDraftsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersDraftsCreate Source #
Creates a new draft with the DRAFT label.
See: usersDraftsCreate
smart constructor.
Instances
Request Lenses
udcPayload :: Lens' UsersDraftsCreate Draft Source #
Multipart request metadata.