Skip to content

Instantly share code, notes, and snippets.

@maecapozzi
Last active November 24, 2017 18:52
Show Gist options
  • Save maecapozzi/d3d1a1e9b2c47ddc5d157901369a35ce to your computer and use it in GitHub Desktop.
Save maecapozzi/d3d1a1e9b2c47ddc5d157901369a35ce to your computer and use it in GitHub Desktop.
const makeHTTPRequest = (username) => {
const url = 'https://api.github.com/users/' + username
fetch(url)
.then(response => response.json())
.then(response => console.log(response))
}
makeHTTPRequest('maecapozzi')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment