Last active
August 29, 2015 14:03
-
-
Save HaykoKoryun/8e8fe8fd90b79e7f72cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Spreadsheet = require('edit-google-spreadsheet'); | |
Spreadsheet.load( | |
{ | |
debug: DEBUG, | |
spreadsheetId: 'spreadsheet-id', | |
worksheetName: 'worksheetName', | |
oauth : | |
{ | |
email: 'service-email', | |
keyFile: 'key.pem' | |
} | |
}, | |
function sheetReady(err, spreadsheet) | |
{ | |
if (err) | |
{ | |
throw err; | |
} | |
spreadsheet.receive(function(err, rows, info) | |
{ | |
console.log(rows); | |
}); | |
}); | |
spreadsheet.add({ 3: { 1: "July" } }); | |
spreadsheet.send(function(err) | |
{ | |
if(err) throw err; | |
console.log("Spreadsheet updated!"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment