exemples/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Spotify Wrapper Test</title>
</head>
<body>
<div id="albums"></div>
<script src="../dist/spotify-wrapper.umd.min.js"></script>
<script>
const spotify = new spotifyWrapper({
token: 'BQCV-vP5DSDY685K6CwqUifH28ECDUFNnuMOGNFyf9eLTCnEyIidtTd0IfK2RbT3pXTEMfi8tDrn_smc3VMrWMg6J2igxD5YSzPtdFdyLP3LUTzhzDIl4EyO1bENZlWYBnhdiVq0Qvw_NLazzA'
})
const albums = spotify.search.albums('Neelix');
const albumsEl = document.getElementById('albums');
albums
.then(data => {
markup = data.albums.items.map(item =>
`<img src='${item.images[0].url}' alt='${item.name}' />`
).join('');
albumsEl.innerHTML = markup;
})
</script>
</body>
</html>