We are trying to upload a document from Java to Google drive. Sample example given in google API doc provides authorization URL from where we get a token.
After passing that token on console we able to upload file to Drive. We want to skip a step where we need to access URL & then pass token explicitly.