I am trying to create a PHP web page that requires reading some data from a google spreadsheet in my domain (I am using Google Apps Free Edition).
The spreadsheet t
Google & OAuth tutorial: I searched for days to find this. It is far better then any other OAuth style tutorial I have used. It is for connecting to Google Docs/google drive.
Python example is here, also see other examples for java etc: https://developers.google.com/drive/examples/python
Note you need to add refresh token to it. But that works just as you would expect.
Also to connect to the spreadsheet use:
SpreadsheetService service =
new SpreadsheetService("MySpreadsheetIntegration-v1");
service.setHeader("Authorization", "Bearer " + accessToken);