What are the basic requirements (library) to access gmail using Oauth2 3 legged?
Is there any java library supported for this access?
Any kickstart example using java?
I found the example from google, but it seem like using python script to get access token. And I am getting confused.
Any inputs will be helpful.
There are two high level steps to access the Gmail APIs using OAuth2:
Obtain a user access token. To accomplish this, read this guide first, it contains the basic steps. Then, checkout the Google OAuth2 Java client library, which has convenience classes that abstract away some of the low level protocol details.
Use the token to authenticate w/ Gmail IMAP/SMTP and start reading mails! You already found out the relevant library in your link included in the question.