| 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 |
Network.Google.Resource.Gmail.Users.Watch
Description
Set up or update a push notification watch on the given user mailbox.
See: Gmail API Reference for gmail.users.watch.
- type UsersWatchResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("watch" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] WatchRequest :> Post '[JSON] WatchResponse))))))
- usersWatch :: WatchRequest -> UsersWatch
- data UsersWatch
- uwPayload :: Lens' UsersWatch WatchRequest
- uwUserId :: Lens' UsersWatch Text
REST Resource
type UsersWatchResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("watch" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] WatchRequest :> Post '[JSON] WatchResponse)))))) Source #
A resource alias for gmail.users.watch method which the
UsersWatch request conforms to.
Creating a Request
Arguments
| :: WatchRequest | |
| -> UsersWatch |
Creates a value of UsersWatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersWatch Source #
Set up or update a push notification watch on the given user mailbox.
See: usersWatch smart constructor.
Instances
| Eq UsersWatch Source # | |
| Data UsersWatch Source # | |
| Show UsersWatch Source # | |
| Generic UsersWatch Source # | |
| GoogleRequest UsersWatch Source # | |
| type Rep UsersWatch Source # | |
| type Scopes UsersWatch Source # | |
| type Rs UsersWatch Source # | |
Request Lenses
uwPayload :: Lens' UsersWatch WatchRequest Source #
Multipart request metadata.