Small wrapper for node-trello that uses promises and self explaining functions to access the API.
Right now there are only GET-functions available, but I will add more.
npm install promised-trello
var Trello = require('promised-trello');
var t = new Trello(<key>, <token>);
t.getMyBoards().then(function(data) {
console.log(JSON.stringify(data));
})
.catch(function (error) {
// Handle any error from all above steps
console.log('Error:');
console.log(error);
})
.done();
Get a single board by name, returns FALSE if no board with input name is found.
Get all boards for the authenticated user.
Get a board by board ID.
Get all lists on a board by board ID.
Get all cards on a list by list ID.
Get all attachments on a card by card ID.
Get a board with lists, cards and attachments by name.
Call the api manually by providing a full api path like "/1/boards/[board_id]".