Skip to content

Commit

Permalink
Added getChecklistsOnBoard
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixSelter committed Apr 23, 2022
1 parent 160532a commit d8e527a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ API calls can either execute a callback or return a promise. To return a promise
* getCardsOnListWithExtraParams
* getCardStickers
* getChecklistsOnCard
* getChecklistsOnBoard
* getCheckList
* getCustomFieldsOnBoard
* getLabelsForBoard
* getListsOnBoard
Expand Down Expand Up @@ -125,6 +127,11 @@ Everything that is not available as a function can be requested by calling `make

## History

### 0.12.1

* Add function getChecklistsOnBoard
* Add function getChecklist

### 0.12.0

* Replaced `restler` with `needle`
Expand Down
8 changes: 8 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,14 @@ Trello.prototype.getChecklistsOnCard = function (cardId, callback) {
return makeRequest(rest.get, this.uri + '/1/cards/' + cardId + '/checklists', {query: this.createQuery()}, callback);
};

Trello.prototype.getChecklistsOnBoard = function (boardId, callback) {
return makeRequest(rest.get, this.uri + '/1/boards/' + boardId + '/checklists', {query: this.createQuery()}, callback);
};

Trello.prototype.getChecklist = function(checklistId, callback) {
return makeRequest(rest.get, this.uri + '/1/checklists/' + checklistId , {query: this.createQuery()}, callback);
};

Trello.prototype.getActionsOnCard = function (cardId, callback) {
return makeRequest(rest.get, this.uri + '/1/cards/' + cardId + '/actions', {query: this.createQuery()}, callback);
};
Expand Down

0 comments on commit d8e527a

Please sign in to comment.