UNPKG

basecamp-api

Version:

Module providing access to the new Basecamp API

24 lines (19 loc) 415 B
/** * Created by danrumney on 9/4/15. */ module.exports = function (client) { "use strict"; var projects = { client: client }; projects.get = function(cb) { client.get("/projects.xml", function(err, data) { if(err) { cb(err); } else { cb(undefined,data.projects); } }); }; return projects; };