Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var edit = function (item) {
- var documentEditAudio = new XMLHttpRequest();
- documentEditAudio.open('GET', 'https://api.vk.com/method/audio.edit?aid=' + item.aid
- + '&owner_id=' + item.owner_id
- + '&artist=' + item.artist.toUpperCase()
- + '&title=' + item.title.toUpperCase()
- + '&no_search=' + 0
- + '&access_token=' + accToken, true);
- documentEditAudio.onload = function () {
- var answer = JSON.parse(documentEditAudio.response);
- console.log(answer);
- };
- documentEditAudio.send();
- }
- audios.response.forEach(function (item) {
- setTimeout(edit(item), 1000);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement