Copyright | (c) 2015 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 |
Immediately and permanently deletes the specified draft. Does not simply trash it.
See: Gmail API Reference for gmail.users.drafts.delete
.
- type UsersDraftsDeleteResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> Delete `[JSON]` ()))))))
- usersDraftsDelete :: Text -> Text -> UsersDraftsDelete
- data UsersDraftsDelete
- uddUserId :: Lens' UsersDraftsDelete Text
- uddId :: Lens' UsersDraftsDelete Text
REST Resource
type UsersDraftsDeleteResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> Delete `[JSON]` ())))))) Source
A resource alias for gmail.users.drafts.delete
method which the
UsersDraftsDelete
request conforms to.
Creating a Request
:: Text | |
-> Text | |
-> UsersDraftsDelete |
Creates a value of UsersDraftsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersDraftsDelete Source
Immediately and permanently deletes the specified draft. Does not simply trash it.
See: usersDraftsDelete
smart constructor.
Request Lenses
uddUserId :: Lens' UsersDraftsDelete Text Source
The user's email address. The special value me can be used to indicate the authenticated user.
uddId :: Lens' UsersDraftsDelete Text Source
The ID of the draft to delete.