Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added getChecklistsOnBoard and getChecklist #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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