After looking for a way to interact Java with google spreadsheet api, I gave up. In the documentation, there is no clear example code for java to use OAuth 2 authentication. My end goal is to edit a spreadsheet using java. I already figured out how to receive data from spreadsheet. If anyone can help, that would be great! Java Code Missing
Link to Spreadsheet API Documentation: https://developers.google.com/google-apps/spreadsheets/
doGet()ordoPost()when the URL to the script is used in the browser. You can pass information to Apps Script. WithdoGet()you pass information in the URL's search string. With a POST request, I think it's part of the payload. You might also want to ask about OAuth 2 for Java in the Apps Script group. Google Apps Script Community