How to access Google Spreadsheets with a service account credentials?
Here is a sample script that uses a service account to read the contents of a Google Spreadsheet’s sheet. Have a look at the README for instructions to set it up: https://github.com/juampynr/google-spreadsheet-reader