Last active
November 16, 2019 19:01
-
-
Save BradCoffield/1dc077f61dfe66c9aa97d646cab55bc3 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
fetch(url) | |
.then(resp => resp.json()) | |
.then(function(result) {}) |
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
const fetch = require('node-fetch'); | |
fetch('https://api.github.com/users/github') | |
.then(res => res.json()) | |
.then(json => console.log(json)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment