Created
August 21, 2018 15:58
-
-
Save mihailsitnic/29348cba16b75b76416e56799289186f 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
<script> | |
const api = 'https://api.themoviedb.org/3/discover/movie?api_key=5874acfd11651a28c55771624f7021f4&language=en-US&primary_release_date.gte=2014-09-15&primary_release_date.lte=2017-10-22'; | |
export default { | |
mounted: () => { | |
fetch(api) | |
.then((res) => { | |
return res.json(); | |
}) | |
.then((jsonRes) => { | |
console.log('jsonRes', jsonRes); | |
}) | |
.catch((err) => { | |
console.log('error', err); | |
}); | |
}, | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment