Node JS module for using Sheetsu
- Supports Promises & callbacks . Use the
get
,getAll
andadd
methods to use both Promises and callbacks.
- Install the module
npm install sheetsu
- Example usage :
var Sheetsu = require('sheetsu');
var co = require('co');
var test_url = 'YOUR_SHEETSU_API';
var dev = new Sheetsu(test_url);
dev.addRow({...}, function(response) {
console.log(response);
});
co(function* () {
let result = yield dev.getAll();
console.log(result);
})
callback (optional)
: function to be executed after the method
params
: Should include the fieldcolumn_name
to get data of the particular columncallback (optional)
: function to be executed after the method
params
: Should include the row of information to add to the spreadsheetcallback (optional)
: function to be executed after the method