V
V
Vasya2019-04-20 15:45:16
PHP
Vasya, 2019-04-20 15:45:16

How to execute execute VK API PHP request?

In the VK documentation, I do not quite understand how it works.
Who can give examples with several calls to the method at once?
I will be very grateful!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
edward_freedom, 2019-04-20
@fed7918

$code =  'var members = API.groups.getMembers({"group_id": '.$this->group_id.', "v": "5.80", "sort": "id_asc", "count": '.$offset.', "offset": '.$members_groups.'}).items;'
      .'var offset = '.$offset.';'
      .'while (offset < 25000 && (offset + '.$members_groups.') < '.$members_count.')'
      .'{members = members + "," + API.groups.getMembers({"group_id": '.$this->group_id.', "v": "5.80", "sort": "id_asc", "count": '.$offset.', "offset": ('.$members_groups.' + offset)}).items;offset = offset + '.$offset.';};'
      .'return members;';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question