Is it possible to use the Gmail REST API to retrieve emails (with the complete body) when you are behind a corporate HTTP proxy?
If so, can someone please provide a Java example to atleast make the connection using the proxy, so I can figure out the rest by myself?
Ok, so I see that my question has been marked as duplicate, and am given the following link: How do I make HttpURLConnection use a proxy?
This does not help me at all. I am referring to the Gmail REST API (https://developers.google.com/gmail/api/quickstart/quickstart-java). Have a look at the quickstart link I sent, it doesnt use HttpURLConnection.
It would have been courteous and productive if someone asked me before marking my question as duplicate thereby multiplying my work.
So again I ask, how can I make a connection to the Gmail REST API if I am behind a corporate proxy? In order to avoid confusion, please answer with respect to the example provided in the quickstart link I sent above.