Created
November 12, 2016 11:48
-
-
Save smks/7a985d7bda1accb178066ae8fbd68480 to your computer and use it in GitHub Desktop.
How to Code - JavaScript Fetch
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
fetch('http://opencanvas.co.uk/ocl/api/actors?date=12-11-2016') | |
.then(function(res) { | |
return res.json(); | |
}) | |
.then(function(json) { | |
console.log(json); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment