node-teambox
v0.0.6
Published
Teambox API node module
Downloads
13
Readme
node-teambox
A node.js wrapper for the Teambox API.
Installation
npm install node-teambox
Usage
var Teambox, client;
Teambox = require('teambox');
client = Teambox.createClient({
username: "foo",
password: "bar"
});
client.Projects.all(function (err, projects) {
//
// List all projects for this Teambox account.
//
});
Implemented endpoints
Activities
| Resource | Description | |:---------|:------------| |GET /api/2/activities |List activities|
Attachments
| Resource | Description | |:---------|:------------| |GET /api/2/activities |List attachments|
Projects
| Resource | Description | |:---------|:------------| |GET /api/2/projects |List projects| |GET /api/2/projects/:id |Project detail| |GET /api/2/projects/:id/tasks |Project's tasks list| |GET /api/2/projects/:id/activities |Project's activities list| |GET /api/2/projects/:id/conversations |Project's conversations list| |GET /api/2/projects/:id/attachments |Project's attachments list| |GET /api/2/projects/:id/comments |Project's comments list| |POST /api/2/projects |Create a new project| |PUT /api/2/projects/:id |Updates a project| |DELETE /api/2/projects/:id |Deletes a project| |POST /api/2/projects/:id/comments |Create a new comment a project|
Tasks
| Resource | Description | |:---------|:------------| |GET /api/2/tasks |List tasks| |GET /api/2/tasks/:id |Task detail| |POST /api/2/tasks |Create a new task| |PUT /api/2/tasks/:id |Updates a task| |DELETE /api/2/tasks/:id |Deletes a tasks| |GET /api/2/tasks/:id/comments |Task's comments list| |POST /api/2/tasks/:id/comments |Create a new comment a task|
Conversations
| Resource | Description | |:---------|:------------| |GET /api/2/conversations |List conversations| |GET /api/2/conversations/:id |Conversation detail| |POST /api/2/conversations |Create a new conversation| |PUT /api/2/conversations/:id |Updates a conversation| |DELETE /api/2/conversations/:id |Deletes a conversation| |GET /api/2/conversations/:id/comments |Conversation's comments list| |POST /api/2/conversations/:id/comments |Create a new comment a conversation|
Comments
| Resource | Description | |:---------|:------------| |GET /api/2/comments |List comments| |GET /api/2/comments/:id |Comment detail| |POST /api/2/comments |Create a new comment| |PUT /api/2/comments/:id |Updates a comment| |DELETE /api/2/comments/:id |Deletes a comment|
Development
This library uses grunt for development. You can run tests with grunt test
Contributing
- Create an issue/ Pick and issue.
- Fork the repo.
- Create a branch.
- Fix the issue.
- Create a pull request.