J
J
jackie chan2015-11-14 09:21:02
JavaScript
jackie chan, 2015-11-14 09:21:02

How to make it possible to add audio?

how to make it possible to add audio in this script

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 +' - '+ song.owner_id+'</span></a></li>'
        }))
      }
    });
};

Need audio.add method

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
riot26, 2015-11-14
@riot26

Everything is written in the documentation

P
Pavel Gromadchuk, 2015-11-14
@Gromadchuk

vk.com/dev/audio.add

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question