Skip to content

Instantly share code, notes, and snippets.

@afontcu
Created August 7, 2018 17:55
Show Gist options
  • Save afontcu/0628222d075f23a6264be5870647b309 to your computer and use it in GitHub Desktop.
Save afontcu/0628222d075f23a6264be5870647b309 to your computer and use it in GitHub Desktop.
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