How to retrive all google mails

I'm using triel version of aspose.email dll (version: 6.1.0.0, runtime version: v2.0.50727)
I want to fetch user's google mails using aspose api.
below is my code that is what i'm trying:

UserCredential uc = GetUserToken(); //this method get tokens(access & refresh) using client_secret.json file.
GmailClient.GetInstance(uc.Token.AccessToken, null);
using (IGmailClient client = GmailClient.GetInstance(uc.Token.AccessToken, null))
{
//here i use client to fetch mails
//but i found that their is no method for fetching mails !!!
...
...
}
Probably IMAP will work with Gmail but it will be slow because of IMAP protocol limitation.

Hi Vivek,


Thank you for posting your inquiry.

The IGmailClient interface doesn’t provide any method to retrieve messages from the Gmail Inbox. It provides the capability to work with contacts and calendar items of the Gmail mailbox. Please use the API’s IMAP or POP3 client of the API to retrieve messages from Gmail mailbox.