Answer the question
In order to leave comments, you need to log in
What is the error in calling the vk api stored procedure?
Hello.
Created a stored procedure for faster getting a list of friends (for 25 users at the same time) and writing their IDs to an array.
var a=Args.users.split(",");
var i=0;
var result=[];
var tmp=[];
while(i<a.length)
{
tmp=[API.friends.get({"user_id":a[i]})]@.items[0];
result=result+tmp;
i=i+1;
}
return result;
https://api.vk.com/method/execute.getFriends?&access_token=aaaaaabbbbbbbccccc&users=1,23
Answer the question
In order to leave comments, you need to log in
https://api.vk.com/method/execute.getFriends?&access_token=aaaaaabbbbbbbccccc&users=1,23
execute.getFriends?&access_token
you ?& . It is not right. Remove the ampersand from the query and add"&v=5.63"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question