edit-google-spreadsheet
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -313,3 +313,3 @@ | ||
Spreadsheet.prototype.recieve = function(callback) { | ||
Spreadsheet.prototype.receive = function(callback) { | ||
@@ -330,3 +330,3 @@ if(!this.token) | ||
var result = JSON.parse(body); | ||
var result = JSON.parse(body); | ||
@@ -339,3 +339,3 @@ if(!result.feed) { | ||
} | ||
var entries = result.feed.entry || []; | ||
@@ -358,3 +358,3 @@ var rows = {}; | ||
info.totalRows++, rows[r] = {}; | ||
rows[r][c] = util.gcell2cell(cell); | ||
@@ -361,0 +361,0 @@ info.lastRow = util.num(r); |
{ | ||
"name": "edit-google-spreadsheet", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "colors": "~0.6.0-1", |
@@ -27,3 +27,3 @@ ## Node - Edit Google Spreadsheet | ||
}); | ||
``` | ||
@@ -38,5 +38,5 @@ | ||
if(err) throw err; | ||
spreadsheet.add({ 3: { 5: "hello!" } }); | ||
spreadsheet.send(function(err) { | ||
@@ -54,4 +54,4 @@ if(err) throw err; | ||
if(err) throw err; | ||
spreadsheet.recieve(function(err, rows) { | ||
spreadsheet.receive(function(err, rows) { | ||
if(err) throw err; | ||
@@ -115,3 +115,3 @@ console.log("Found rows:", rows); | ||
##### spreadsheet.`recieve( callback( err , rows , info ) )` | ||
##### spreadsheet.`receive( callback( err , rows , info ) )` | ||
Recieves the entire spreadsheet. The `rows` object returned is in the same object format as the cells you `add()`, so `add(rows)` will be valid. The `info` object looks like `{ totalRows: 1, totalCells: 1, lastRow: 3, nextRow: 4 }`. | ||
@@ -140,2 +140,3 @@ | ||
* Create New Spreadsheets | ||
* Read specific range of cells | ||
@@ -145,3 +146,3 @@ #### FAQ | ||
* Q: How do I append rows to my spreadsheet ? | ||
* A: Using the `info` object returned from `get()`, one could always begin `add()`ing at the `nextRow`, thereby appending to the spreadsheet. | ||
* A: Using the `info` object returned from `receive()`, one could always begin `add()`ing at the `nextRow`, thereby appending to the spreadsheet. | ||
@@ -148,0 +149,0 @@ #### Credits |
14431
146