1.0.12 • Published 9 years ago
trello-client v1.0.12
Trello API client.
install
$ npm install trello-client --savecompile
$ coffee -c -o lib srcusage
trello-client is tested for Node
var trello = require('trello-client')(key, token);
trello.createBoard({name:'Bugs'}).then(function(board) { console.dir(board); })test setup
Clone this repo and create a file called .env in the root with the following:
TRELLO_KEY=xxxx
TRELLO_TOKEN=xxxxDeveloper keys can be obtained at https://trello.com/app-key
testing
$ npm testTrello api
The entire Trello API will be supported someday :).
Adding methods is as simple as updating the api.json file in the root directory.
All method signatures accept a params object and return an A+ Promise.
trello.addMemberToBoardtrello.addMemberToOrgtrello.createBoardtrello.createCardtrello.createCheckitemtrello.createChecklisttrello.createListtrello.createWebhooktrello.deleteTokenWebhooktrello.getBoardtrello.getBoardMemberstrello.getLists(for a board)trello.getMemberOrgstrello.getOrgBoardstrello.getTokenWebhookstrello.search(account-wide)