gogol-gmail-0.0.1: Google Gmail SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Gmail.Users.Watch

Contents

Description

Set up or update a push notification watch on the given user mailbox.

See: Gmail API Reference for gmail.users.watch.

Synopsis

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

usersWatch Source

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.

Request Lenses

uwPayload :: Lens' UsersWatch WatchRequest Source

Multipart request metadata.

uwUserId :: Lens' UsersWatch Text Source

The user's email address. The special value me can be used to indicate the authenticated user.