Skip to content

Instantly share code, notes, and snippets.

@maecapozzi
Last active November 24, 2017 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maecapozzi/e4fcba1a5b48d9e428ea899b58d1c126 to your computer and use it in GitHub Desktop.
Save maecapozzi/e4fcba1a5b48d9e428ea899b58d1c126 to your computer and use it in GitHub Desktop.
const getUser = async (username) => {
const uri = 'https://api.github.com/users/' + username
const response = await fetch(uri)
const parsedResponse = await response.json()
console.log(parsedResponse)
}
getUser('maecapozzi')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment