2

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
      });
    }
  });
}
Chris
  • 21
  • 2
  • Do you have any more specific question? I'm using the same module and it works fine. Did you have success in what you were trying to do? – jeffreypriebe Jul 05 '15 at 01:41

0 Answers0