-
-
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 #2 from bhushankumarl/development
Development
- Loading branch information
Showing
88 changed files
with
1,670 additions
and
13 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
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 |
---|---|---|
@@ -1 +1,19 @@ | ||
Copyright (C) 2017 Bhushankumar Lilapara | ||
Copyright (C) 2017 Bhushankumar Lilapara | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,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 actionRequest = function () { | ||
Trello.action.del('ACTION_ID').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
actionRequest(); |
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 actionRequest = function () { | ||
Trello.action.search('ACTION_ID').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
actionRequest(); |
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 actionRequest = function () { | ||
Trello.action.searchField('ACTION_ID', 'FIELD_NAME').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
actionRequest(); |
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,17 @@ | ||
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 actionRequest = function () { | ||
var id = 'ACTION_ID'; | ||
var data = {text: 'text'}; | ||
|
||
Trello.action.update(id, data).then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
actionRequest(); |
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,28 @@ | ||
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 cardRequest = function () { | ||
var data = { | ||
name: 'CARD_NAME', | ||
desc: 'Card description', | ||
pos: 'top', | ||
idList: 'LIST_ID', //required | ||
due: false, | ||
dueComplete: false, | ||
idMembers: ['MEMBER_ID', 'MEMBER_ID', 'MEMBER_ID'], | ||
idLabels: ['LABEL_ID', 'LABEL_ID', 'LABEL_ID'], | ||
urlSource: '', | ||
fileSource: '', | ||
idCardSource: '', | ||
keepFromSource: '', | ||
}; | ||
Trello.card.create(data).then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
cardRequest(); |
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,15 @@ | ||
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 cardRequest = function () { | ||
var id = 'CARD_ID'; | ||
Trello.card.del(id).then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
cardRequest(); |
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 cardRequest = function () { | ||
Trello.card.search('CARD_ID').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
cardRequest(); |
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 cardRequest = function () { | ||
Trello.card.searchField('CARD_ID', 'FIELD_NAME').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
cardRequest(); |
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,30 @@ | ||
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 cardRequest = function () { | ||
var id = 'CARD_ID'; | ||
var data = { | ||
name: 'CARD_NAME_TEST', | ||
desc: 'Card description', | ||
closed: false, | ||
idMembers: 'MEMBER_ID,MEMBER_ID,MEMBER_ID', | ||
idAttachmentCover: '', | ||
idList: '', | ||
idLabels: 'LABEL_ID, LABEL_ID, LABEL_ID', | ||
idBoard: false, | ||
pos: 'top', | ||
due: null, | ||
dueComplete: false, | ||
subscribed: false, | ||
}; | ||
|
||
Trello.card.update(id, data).then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
cardRequest(); |
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,20 @@ | ||
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 checklistRequest = function () { | ||
var data = { | ||
idCard: 'CARD_ID', // required | ||
name: 'CHECKLIST_NAME', | ||
pos: 1 | ||
}; | ||
|
||
Trello.checklist.create(data).then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
checklistRequest(); |
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,15 @@ | ||
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 checklistRequest = function () { | ||
var id = 'CHECKLIST_ID'; | ||
Trello.checklist.del(id).then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
checklistRequest(); |
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 checklistRequest = function () { | ||
Trello.checklist.search('CHECKLIST_ID').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
checklistRequest(); |
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 checklistRequest = function () { | ||
Trello.checklist.searchField('CHECKLIST_ID', 'FIELD_NAME').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
checklistRequest(); |
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,20 @@ | ||
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 checklistRequest = function () { | ||
var id = 'CHECKLIST_ID'; | ||
var data = { | ||
name: 'CHECKLIST_NAME', | ||
pos: 'top' | ||
}; | ||
|
||
Trello.checklist.update(id, data).then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
checklistRequest(); |
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 enterpriseRequest = function () { | ||
Trello.enterprise.search('ENTERPRISE_ID').then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
enterpriseRequest(); |
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,19 @@ | ||
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 labelRequest = function () { | ||
var data = { | ||
name: 'LABEL_NAME', | ||
color: 'orange', | ||
idBoard: 'BOARD_ID' | ||
}; | ||
Trello.label.create(data).then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
labelRequest(); |
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,15 @@ | ||
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 labelRequest = function () { | ||
var id = 'LABEL_ID'; | ||
Trello.label.del(id).then(function (response) { | ||
console.log('response ', response); | ||
}).catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
}; | ||
|
||
labelRequest(); |
Oops, something went wrong.