V
V
Vlad2016-05-15 21:13:57
In contact with
Vlad, 2016-05-15 21:13:57

How to use the execute method for friends.get Vkontakte Api?

I use the following php code to get the id of friends:

$resp = file_get_contents('https://api.vkontakte.ru/method/friends.get?user_id='.$_GET["userid"].'');
$data = json_decode($resp, true);
$myfriends = implode(",", $data[response]);

The problem is that I need to complete about 200 such requests and the process is very long. It is said that queries can be optimized using the execute method.
Can you please tell me how to rewrite my code under execute?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question