How to read a spreadsheet using Google Sheets API + Javascript
问题 There's a nice solution to updating Google spreadsheets using the Drive REST API in this question. It overwrites the current contents. I'd like to read in the current contents, modify them, then update. How do I read in the current spreadsheet? 回答1: This works (assuming your credentials are in order and you are authorized): function getFileInfo(fileId, callback) { try { gapi.client.drive.files.get({ fileId: fileId, fields: "appProperties,capabilities,contentHints,createdTime,description