node-trello | Node wrapper for Trello 's HTTP API | Runtime Evironment library
kandi X-RAY | node-trello Summary
kandi X-RAY | node-trello Summary
Node wrapper for Trello's HTTP API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Make a request
node-trello Key Features
node-trello Examples and Code Snippets
Community Discussions
Trending Discussions on node-trello
QUESTION
I'm new to nodejs and it's callback hell, I read about async / await introduction in node 8 and was interested to implement it that way
I have a specific set of methods that I need to call in a synchronous manner one after another for trello API e.g
- create board
- create labels using board id
- create cards using board id
- attach labels to card
- create list in card
- add each item to list in a card
you can imagine in nodejs, this requires significant callbacks nested into one another to access the previous object
...ANSWER
Answered 2017-Jul-27 at 13:07await
only can be used inside an async function, it used to wait a Promise to be solved, not for what you want.
To clean your code a little bit take a look at Promises, but don't expect that it'll make your code look less ugly, you'll just change a "callback" hell to a "then" hell.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-trello
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page