Skip to content

Instantly share code, notes, and snippets.

@LinGG

LinGG/each

Created Nov 13, 2015
Embed
What would you like to do?
function recommendate(){
VK.Api.call('audio.getRecommendations', {count: '1000'}, function(r) {
if(r.response) {
$('#playlist').empty().append($.map(r.response, function(song){
return '<li><a href="'+ song.url +'"><b>'+song.artist+'</b> - '+ song.title +'<span class="label">'+ song.aid +'</span></a></li>'
}))
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.