Skip to content

Instantly share code, notes, and snippets.

@mihailsitnic
Created August 21, 2018 15:58
Show Gist options
  • Save mihailsitnic/29348cba16b75b76416e56799289186f to your computer and use it in GitHub Desktop.
Save mihailsitnic/29348cba16b75b76416e56799289186f to your computer and use it in GitHub Desktop.
<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