1fetch("https://api.spotify.com/v1/audio-analysis/6EJiVf7U0p1BBfs0qqeb1f", {
2 method: "GET",
3 headers: {
4 Authorization: `Bearer ${userAccessToken}`
5 }
6})
7.then(response => response.json())
8.then(({beats}) => {
9 beats.forEach((beat, index) => {
10 console.log(`Beat ${index} starts at ${beat.start}`);
11 })
12})