Is there any method to read all mails (i.e. both read and unread) using Gmail API with OAuth.
The following link returns only new mails:>
There is sample code. Alter the code as per your needs.. https://developers.google.com/google-apps/gmail/xoauth2_libraries