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 draft.
See: Gmail API Reference for gmail.users.drafts.get
.
Synopsis
- type UsersDraftsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "format" UsersDraftsGetFormat :> (QueryParam "alt" AltJSON :> Get '[JSON] Draft)))))))
- usersDraftsGet :: Text -> UsersDraftsGet
- data UsersDraftsGet
- udgFormat :: Lens' UsersDraftsGet UsersDraftsGetFormat
- udgUserId :: Lens' UsersDraftsGet Text
- udgId :: Lens' UsersDraftsGet Text
REST Resource
type UsersDraftsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "format" UsersDraftsGetFormat :> (QueryParam "alt" AltJSON :> Get '[JSON] Draft))))))) Source #
A resource alias for gmail.users.drafts.get
method which the
UsersDraftsGet
request conforms to.
Creating a Request
:: Text | |
-> UsersDraftsGet |
Creates a value of UsersDraftsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersDraftsGet Source #
Gets the specified draft.
See: usersDraftsGet
smart constructor.
Instances
Request Lenses
udgFormat :: Lens' UsersDraftsGet UsersDraftsGetFormat Source #
The format to return the draft in.