javascript - read google spreadsheet for changes in data -


Want to read a Google Drive spreadsheet and create a list of events for any changes to my webpad so far I can author my app in JavaScript to read the list of files in my directory.

  function printfile (fileId) {var request = gapi.client.drive}  

.files.get ({'fileId': fileId}); Request.execute ('title:' + resp.title); console.log ('Description:' + resp.description); console.log ('MIME type:' resp.mimeType) ;}); } / ** * Recover a list of file resources. * * @ Ultimate {function} callback function, to call when the request is completed. * / Retrieve functionalphilues (callback) {var retrievePageOfFiles = function (request, result) {request.execute (resp) {var i = 0; result = result .concat (resp.items); var nextPageToken = resp. NextPageToken; (I = 0; i & lt; resp.items.length; i ++) {console.log (resp.items [i]) if (resp.items [i] .id == "xxxxxxXxxx") { PrintFile (resp.items) [ii]. Id); Break;}}}); } Initialitialize {gap}: {'path' Retrieve PGoffFiles (initial space, []); }

Definitely the problem here:

  var request = gapi.client.drive.files.get ({' FileId ': FileId});  

I'm copying the Google Drive API instance for the gate !!! My code prevents execution does not go further.

Part 1: Solution request call by changing:

  var request1 = gapi.client.request ({'path': '/ drive / v2 / files /' + fileId, 'method': 'GET',});  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -