I'm getting notifications using Pub/Sub, but the messageId I get is not the messageId to see the email content, how can I get this messageId?
I get this data on my endpoint
{
message:
{
data:"eyJlbWFpbEFkZHJlc3MiOiAidXNlckBleGFtcGxlLmNXXXXXX,
"messageId": "2070443601311540",
"publishTime": "2021-02-26T19:13:55.749Z",
}
subscription: "projects/myproject/subscriptions/mysubscription"
}
The pub/sub messageId has nothing to do with the gmail messageId.
I need to get the messageId from gmail whenever a new email is received in my inbox.