I'd like to output a list of projects with the basecamp classic api using node. Basically how to use the basecamp classic api using node. I've come across this modules example. But need a little more direction on how to implement it.
var Basecamp = require('basecamp-classic');
var bc = new Basecamp(
'https://YOUR_COMPANY.basecamphq.com',
'YOUR_API_KEY'
);
module.exports = function(req, res) {
bc.todoLists.all(function(err, lists){
if(err) {
console.log(err);
res.send('there was a problem');
} else {
// render the todo template and pass it our lists object
res.render('todo', {
todoLists: lists
});
}
});
}