sheetsu
v1.2.0
Published
Node JS client for Sheetsu
Downloads
5
Maintainers
Readme
node-sheetsu
Node JS module for using Sheetsu
What's new (v1.2.0)
- Supports Promises & callbacks . Use the
get
,getAll
andadd
methods 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_name
to 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