samcday/node-google-spreadsheets — pull request #13 by jspears (2013-10-14 02:21:53+00:00)
Title: Adds row support.

relatively tricky to test, but it "works for me" adds a dependency for data2xml.

usage
```javascript
var GoogleSpreadsheets = require("google-spreadsheets");
var GoogleClientLogin = require("googleclientlogin").GoogleClientLogin;

function spreadit(key, id) {
GoogleSpreadsheets({
key: key,
auth: id
}, function (err, spreadsheet) {
spreadsheet.worksheets[0].rows({
// range: "R1C1:R1C2"
}, function (err, result) {
spreadsheet.worksheets[0].addRow({
level:1, message:'hello'
}, function (err, resp) {
console.warn('resp'+JSON.stringify(resp, null, 3));
});
});
});
}
var googleAuth = new GoogleClientLogin({
email: '',
password: '',
service: 'spreadsheets',
accountType: GoogleClientLogin.accountTypes.google
});

googleAuth.on(GoogleClientLogin.events.login, function () {
console.log('login', arguments);

spreadit("0Alq8zstXMGmZdFd4ems3WXpNZ3hjQ0VGMTdqM3Y1OHc", googleAuth.getAuthId());
});
googleAuth.login();
```