Answer the question
In order to leave comments, you need to log in
How to add all products to the collection?
I understand the VK API and in parallel with JS, how to correctly add all the products to the selection, while it turns out only under one product, can someone tell me what is wrong?
VK.api("market.get", {owner_id:-180709710,count: 200, "v":"5.92"}, function (data) {
for (var i = 0; i < data.response.items.length; i++) {
var q = data.response.items[i].id
console.log(q);
VK.api("market.addToAlbum", {owner_id:-180709710, item_id:q, album_ids:4, "v":"5.92"}, function (data){})
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question