Created
April 19, 2017 09:20
-
-
Save Nick-smallworld/c1671b0ce7251175f9805a56a943d4b7 to your computer and use it in GitHub Desktop.
fetchをつかってMTからJSONをGETしたあとconsole.logで表示する
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<script> | |
fetch('http://your-mt/mt-data-api.cgi/v3/sites/blog_id/entries') | |
.then((response) => response.json()) | |
.then((json) => console.log(json)); | |
</script> | |
</head> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment