Skip to content

Instantly share code, notes, and snippets.

View Search method
search(term) {
console.log(term);
$.ajax({
url: spotifyURIBase + `search?type=track&q=${term}`,
type: 'GET',
dataType: 'json',
headers: {Authorization: `Bearer ${accessToken}`},
success(response) {
return response.map(track => {