Watch for push notifications
documentedSets up or updates a push notification watch on the given user mailbox.
POST /gmail/v1/users/{userId}/watchUsersno implementation yet0 runsInput
user_id*
User ID or 'me'
me or user@example.com
labelIds
Label IDs to monitor
['INBOX']
labelFilterAction
Label filter action (include|exclude)
"include" or "exclude"
labelFilterBehavior
Label filter behavior (include|exclude)
"include" or "exclude"
topicName*
Pub/Sub topic name
projects/PROJECT_ID/topics/TOPIC
Calls Gmail as you (your API key is your account); keychains.dev holds the credentials.