Closed robdodson closed 12 years ago
anyone?
The pivotal.getProject()
call is asynchronous and requires a callback.
Try something like:
app.get('/projects', function(req, res) {
pivotal.getProjects(function(err, projects){
res.send(projects);
});
});
ah yep that did it! so sorry, total newbie mistake. I'm about 2 days into Node. Thanks for putting together this module :)
after I've set my token when the user hits the following route:
I added some console logs to xml2js and I can see that the correct xml is coming back from pivotal but it fails somewhere in that method.