gmail api - Getting a users mailbox current history Id -


I would like to start moving forward a user mailbox so that I need the most recent history of users' mailboxes. There is no way to get it with an API call.

The gmail.users.history.list endpoint contains a history ed that is what I want, with the docs:

  History unsigned long mailboxes The current ID history record of   

However, in order to obtain a valid response from this endpoint, you must provide startHistoryId as a parameter.

Request a list of the messages of users, the only one option I see, get the most recent history ID from it, then request for gmail.users.history.list that history Make available to get the latest version.

Other thoughts?

Did you check out?

Depending on the case of your use, to avoid the race between your current situation and when you start to forward the synchronization, you must provide a suitable history. If any "current history Get ", then something else between your previous state and when you will lose these results if you do not have any special status (for example, just want to receive updates and initiate it You do not have to worry about anything) so you can use any history ID (like on a message or thread) as you mention.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -