Last active
October 30, 2019 15:41
-
-
Save BlakeStevenson/658bf4ad536db4a50e1fbd06cb29b1a0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 updateName() { | |
uuid = document.getElementById("uuid").value; | |
fetch('https://api.mojang.com/user/profiles/' + uuid + '/names', { | |
method: 'GET', | |
mode: 'no-cors' | |
}) | |
.then(response => response.json()) | |
.then(result => alert(JSON.stringify(result))) | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment