-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from bhushankumarl/development
Development
- Loading branch information
Showing
8 changed files
with
104 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,10 +46,8 @@ trello.setOauthToken('oauthToken'); | |
- Kindly validate test cases & linting before opening new PR. | ||
|
||
## Do you need an expert? | ||
Are you finding a developer for your word class product? If yes, please contact here. [Submit your project request here.](https://goo.gl/forms/UofdG5GY5iHMoUWg2) | ||
``` | ||
Originally by [Bhushankumar Lilapara](https://github.com/bhushankumarl) ([email protected]). | ||
``` | ||
Are you finding a developer for your world-class product? If yes, please contact here. [Submit your project request here.](https://goo.gl/forms/UofdG5GY5iHMoUWg2) | ||
Originally by [Bhushankumar L](mailto:[email protected]). | ||
|
||
## Examples | ||
|
||
|
@@ -212,6 +210,24 @@ Originally by [Bhushankumar Lilapara](https://github.com/bhushankumarl) (bhushan | |
}); | ||
``` | ||
|
||
#### Search Cards | ||
``` | ||
Trello.board.searchCards('BOARD_ID').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
``` | ||
|
||
#### Search Closed Cards | ||
``` | ||
Trello.board.searchCardsFilter('BOARD_ID', 'closed').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
``` | ||
|
||
#### Search Field Board | ||
``` | ||
Trello.board.searchField('BOARD_ID', 'FIELD_NAME').then(function (response) { | ||
|
@@ -676,4 +692,5 @@ Originally by [Bhushankumar Lilapara](https://github.com/bhushankumarl) (bhushan | |
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
``` | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var apiKey = process.env.TRELLO_API_KEY || 'YOUR_API_KEY'; | ||
var oauthToken = process.env.TRELLO_OAUTH_TOKEN || 'OAUTH_TOKEN'; | ||
|
||
var Trello = require('../../../lib/trello-node-api')(apiKey, oauthToken); | ||
|
||
var boardRequest = function () { | ||
Trello.board.searchCards('BOARD_ID').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
boardRequest(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var apiKey = process.env.TRELLO_API_KEY || 'YOUR_API_KEY'; | ||
var oauthToken = process.env.TRELLO_OAUTH_TOKEN || 'OAUTH_TOKEN'; | ||
|
||
var Trello = require('../../../lib/trello-node-api')(apiKey, oauthToken); | ||
|
||
var boardRequest = function () { | ||
Trello.board.searchCardsFilter('BOARD_ID', 'closed').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
boardRequest(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const CONFIG = { | ||
TRELLO_API_KEY: process.env.TRELLO_API_KEY || undefined, | ||
TRELLO_OAUTH_TOKEN: process.env.TRELLO_OAUTH_TOKEN || undefined | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters