Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$.getJSON(url,
function(data) {
var output = '';
$.each(data.query.results.item, function(i,item){
output += '<li><a href="' + item.spotify-uri-worldwide + '><img src="' + item.cover-uri + '/>' + item.artist + " " + item.title + '</a></li>';
});
$('#albumlist').append(output).listview('refresh');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment