title: GMAIL API - get message by historyID
body: <p>I'm using <a href="https://developers.google.com/gmail/api/reference/rest/v1/users/watch" rel="nofollow noreferrer">users.watch</a> method to get event when new e-mail message had received, using topic pub/sub. It works fine, but, such explained in this link, the event received in responde body is historyId, but I wish get new message sent in e-mail. How I get new message using historyId? Get first element using <a href="https://developers.google.com/gmail/api/reference/rest/v1/users.messages/list" rel="nofollow noreferrer">users.messages.list</a> with maxResults = 1 not sounds good for me, because in the short time between activated event and users.messages.list execute, if another new message arrives, the previous one will be lost because messages.list get the most recent message. How to convert historyId to messageId, and so finally use <a href="https://developers.google.com/gmail/api/reference/rest/v1/users.messages/get" rel="nofollow noreferrer">users.messages.get</a> ?</p>