node-social-api | Social api client for node with typescript | REST library
kandi X-RAY | node-social-api Summary
kandi X-RAY | node-social-api Summary
Social api client for node with typescript
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-social-api
node-social-api Key Features
node-social-api Examples and Code Snippets
Community Discussions
Trending Discussions on node-social-api
QUESTION
Very much a nodejs noob, trying to make sense of promises, await, async. I promise you I did my due diligence research (spent the entire day studying to get the code hereunder. I'm still not entirely sure everything is as it should be and can find no reference that has the exact same thing (or close enough) to what I'm trying to do here.
Thanks for any help.
General structure:
function msg() is waiting for 4 functions to complete, the 4 api calls (code only shows one): function redditPromise().
redditPromise() calls async function redditGet() -> that's the one that will call reddit API and in the meantime save the API data to database. (function saveToDb())
...ANSWER
Answered 2017-Nov-30 at 04:52The only function available in the code you posted is twitterPromise, I would suggest as Bergi to return promises:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-social-api
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