Last active
November 24, 2017 19:11
-
-
Save maecapozzi/e4fcba1a5b48d9e428ea899b58d1c126 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
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