A wrapper for the Basecamp Classic API (currently only supports read methods). Originally authored by the folks at StudioLift (https://github.com/studiolift).
npm install basecamp-classic
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
});
}
});
}
projects.all(callback)
projects.count(callback)
projects.load(id, callback)
people.me(callback)
people.all(callback)
people.fromProject(projectId, callback)
people.fromCompany(companyId, callback)
people.load(id, callback)
companies.all(callback)
companies.fromProject(projectId, callback)
companies.load(id, callback)
categories.fromProject(projectId, type, callback)
categories.load(id, callback)
messages.fromProject(projectId, callback)
messages.fromProjectArchive(projectId, callback)
messages.load(id, callback)
messages.fromCategory(projectId, categoryId, callback)
messages.fromCategoryArchive(projectId, categoryId, callback)
comments.fromResource(resourceType, resourceId, callback)
comments.load(id, callback)
todoLists.all(callback)
todoLists.fromResponsible(responsibleId, callback)
todoLists.fromProject(projectId, callback)
todoLists.fromProjectPending(projectId, callback)
todoLists.fromProjectFinished(projectId, callback)
todoLists.load(id, callback)
todoItems.fromList(listId, callback)
todoItems.load(id, callback)
milestones.fromProject(projectId, callback)
time.fromProject(projectId, callback)
time.fromTodo(todoId, callback)
time.report(options, callback)
- eg.
var options = { "from":"YYYYMMDD", "to":"YYYYMMDD" };
- full list of options = 'from', 'to', 'subject_id', 'todo_item_id', 'filter_project_id', and 'filter_company_id'
- eg.
files.fromProject(projectId, offset, callback)
See the GET endpoints listed on http://github.com/37signals/basecamp-classic-api
- Publish to npm
- Tests for read methods
- Create write methods