Spotify API searchTracks按语言筛选
我正在使用JMPerez的()SpotifyWebAPI for javascript,我不知道如何根据流行程度过滤歌曲,可以吗Spotify API searchTracks按语言筛选,spotify,spotify-app,Spotify,Spotify App,我正在使用JMPerez的()SpotifyWebAPI for javascript,我不知道如何根据流行程度过滤歌曲,可以吗 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 ab
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);
});
}