1.2.0 • Published 10 years ago
sheetsu v1.2.0
node-sheetsu

Node JS module for using Sheetsu
What's new (v1.2.0)
- Supports Promises & callbacks . Use the
get,getAllandaddmethods to use both Promises and callbacks.
Getting Started
- 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);
})Methods
getAll (callback)
callback (optional): function to be executed after the method
get (params, callback)
params: Should include the fieldcolumn_nameto get data of the particular columncallback (optional): function to be executed after the method
add (params, callback)
params: Should include the row of information to add to the spreadsheetcallback (optional): function to be executed after the method