Last active
June 2, 2020 18:19
-
-
Save behnamazimi/4f49fdebfb6870c93b0f645090f1aa27 to your computer and use it in GitHub Desktop.
collective service wrapper medium gist
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
new ClientHandler({url: "https://reqres.in/api/users"}) | |
.fire() | |
.then(res => { | |
// handle result | |
console.log("users fetched"); | |
}) | |
.catch(err => { | |
/// handle error | |
console.log(err); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment