Spotify API searchTracks фильтрация по языку - PullRequest
1 голос
/ 27 мая 2020
gettingTracks(){
    // store the current promise in case we need to abort it
    if (prev !== null) {
        prev.abort();
    }
    // store the current promise in case we need to abort it
    prev = spotifyApi.searchTracks('genre: hip-hop year:2009', {limit: 25, offset:50});
    prev.then((data) => {
        this.setState({
          all_tracks: { 
              tracks: data.tracks.items
            }
        })
        prev = null;
    }, function(err) {
        console.error(err);
    });
}

Я использую JMPerez (https://github.com/JMPerez/spotify-web-api-js) spotify web api для javascript, и я не понимаю, как фильтровать песни по популярности, возможно ли это?

...