nyc-bookstores/node_modules/tabletop/examples/nodejs/test.js

16 lines
340 B
JavaScript
Raw Normal View History

2013-05-27 20:45:59 +00:00
var Tabletop = require('../../').Tabletop;
var testURL = 'https://docs.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AmYzu_s7QHsmdDNZUzRlYldnWTZCLXdrMXlYQzVxSFE&output=html';
function onLoad(data, tabletop) {
console.log(data);
};
var options = {
key: testURL,
callback: onLoad,
simpleSheet: true
};
Tabletop.init(options);