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 |
Moves the specified message to the trash.
See: Gmail API Reference for gmail.users.messages.trash
.
- type UsersMessagesTrashResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "id" Text :> ("trash" :> (QueryParam "alt" AltJSON :> Post `[JSON]` Message)))))))
- usersMessagesTrash :: Text -> Text -> UsersMessagesTrash
- data UsersMessagesTrash
- umtUserId :: Lens' UsersMessagesTrash Text
- umtId :: Lens' UsersMessagesTrash Text
REST Resource
type UsersMessagesTrashResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "id" Text :> ("trash" :> (QueryParam "alt" AltJSON :> Post `[JSON]` Message))))))) Source
A resource alias for gmail.users.messages.trash
method which the
UsersMessagesTrash
request conforms to.
Creating a Request
:: Text | |
-> Text | |
-> UsersMessagesTrash |
Creates a value of UsersMessagesTrash
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersMessagesTrash Source
Moves the specified message to the trash.
See: usersMessagesTrash
smart constructor.
Request Lenses
umtUserId :: Lens' UsersMessagesTrash Text Source
The user's email address. The special value me can be used to indicate the authenticated user.
umtId :: Lens' UsersMessagesTrash Text Source
The ID of the message to Trash.