Created
August 7, 2018 17:55
-
-
Save afontcu/0628222d075f23a6264be5870647b309 to your computer and use it in GitHub Desktop.
This file contains 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
function apiRequest({ | |
endpoint, | |
method = 'GET', | |
getParams = {}, | |
headers = ['Content-Type: text-plain'], | |
callback = () => {}, | |
timeout = 0, | |
authRequest = true, | |
} = {}) { | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment