I tried to set up a push notification watch on the given user mailbox
watch_request_object = Google::Apis::GmailV1::WatchRequest.new topic_name: 'projects/:project_id/topics/:topic_name', label_ids: [':label_id']
res = client.watch_user 'me', watch_request_object
I got backendError
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
is this endpoint supported?
It is. That generic 500 error makes me think something hasn't been completely set up yet.
Did you…
* Add [email protected] as a publisher *
Did not see that in any doc...I had the same issue and that did the trick for me.
* Add [email protected] as a publisher *
Did not see that in any doc...I had the same issue and that did the trick for me.
To anyone reading the gmail push notification docs, the docs specifically say to use serviceAccount:[email protected]. That is not a valid name, but as @devtoro pointed out, you can use [email protected] (note the omission of serviceAccount:), which is the right one to use.