Skip to content

HeaptraceTechnologyCollection/microservice-trello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trello OMG Microservice

Open Microservice Guide Build Status codecov

Trello microservice allows to create board, list, cards and also to subscribe the entire board or list, it has a variety of work and personal uses and overview of what is being worked on and what is the current status of card.

Usage in Storyscript

Create Board
>>> trello createBoard boardName:'boardName'
{"success":"true/false","message":"success/failure message","statusCode":"HTTPstatusCode"}
Get Board
>>> trello getBoard boardId:'boardId'
{"id":"boardId","name":"boardName","desc":"description","closed":"true/false"}
Create list on board
>>> trello createList boardId:'boardId' listName:'listName'
{"id": "listID","name": "listName","idBoard": "idBoard","closed": "true/false"}
Get List
>>> trello getLists boardId:'boardId'
{"id":"listID","name":"listName","idBoard":"idBoard","closed":"true/false"}
Add card to list
>>> trello addCard name:'name' description:'description' listId:'listId'
{"success":"true/false","message":"success/failure message","statusCode":"HTTPstatusCode"}
Get cards
>>> trello getCards boardId:'boardId'
{"id":"cardID","name":"cardName","shortUrl":"shortUrl","url":"url","idBoard":"idBoard","idList":"idList"}          
Move card to list
>>> trello moveCard cardId:'cardId' listId:'listId'
{"success":"true/false","message":"success/failure message","statusCode":"HTTPstatusCode"}
Copy card to list
>>> trello copyCard cardId:'cardId' listId:'listId'
{"id":"cardID","name":"cardName","shortUrl":"shortUrl","url":"url","idBoard":"idBoard","idList":"idList"}
Delete Board
>>> trello deleteBoard boardId:'boardId'
{"success":"true/false","message":"success/failure message","statusCode":"HTTPstatusCode"}
Get All Boards
>>> trello getAllBoards username:'username'
{"id":"boardId","name":"boardName","desc":"description","closed":"true/false","url":"boardLink"}

Curious to learn more?

✨🍰✨

Usage with OMG CLI

Create Board
$ omg run createBoard -a boardName=<BOARD_NAME> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Get Board
$ omg run getBoard -a boardId=<BOARD_ID> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Create list on board
$ omg run createList -a boardId=<BOARD_ID> -a listName=<LIST_NAME> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Get List
$ omg run getLists -a boardId=<BOARD_ID> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Add card to list
$ omg run addCard -a name=<CARD_NAME> -a description=<DESCRIPTION> -a listId=<LIST_ID> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Get cards
$ omg run getCards -a boardId=<BOARD_ID> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Move card to list
$ omg run moveCard -a cardId=<CARD_ID> -a listId=<LIST_ID> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Copy card to list
$ omg run copyCard -a cardId=<CARD_ID> -a listId=<LIST_ID> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Delete Board
$ omg run deleteBoard -a boardId=<BOARD_ID> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Subscribe card
$ omg subscribe receive card -a boardId=<BOARD_ID> -a listId=<LIST_ID> -a existing=<BOOLEAN> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>
Boards For User
$ omg run boardForUser -a username=<USERNAME> -e API_KEY=<API_KEY> -e ACCESS_TOKEN=<ACCESS_TOKEN>

Note: the OMG CLI requires Docker to be installed.

License

MIT License.

Releases

No releases published

Packages

No packages published

Languages