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