Created
March 27, 2017 04:13
-
-
Save toddzebert/23685346122169c5e63ae9d51c0e21bd to your computer and use it in GitHub Desktop.
"main" code that wraps all the individual promise steps together
This file contains hidden or 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
// requires https://gist.github.com/toddzebert/135578e9faf006b73656c360b7e616e2 | |
// requires https://gist.github.com/toddzebert/c9d75cd901897e7363bf142a90a2b2a1 | |
// requires https://gist.github.com/toddzebert/bcd849a48676256eef8a795f8f03cfff | |
// requires https://gist.github.com/toddzebert/43c308b0e0f559b47ac487dcc8c06924 | |
// requires https://gist.github.com/toddzebert/5d279f8a2104bef103273e5177ae3599 | |
var data = { id: 4 }; | |
getAuth(data) | |
.then(getProfile) | |
.then(getFeed) | |
.then(getPosts) | |
.then(getAds) | |
.then(data => console.log('final data: ', data)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment