E
E
Evgeny Zapunny2019-09-15 20:46:57
PHP
Evgeny Zapunny, 2019-09-15 20:46:57

How to display all subscribers of vk.api using execute?

there is a task to withdraw all subscribers and there may be more than 5k. How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-09-15
@evgzap

As I understand it, this function is of interest, but this one will work according to the same principle
. It has offset, count, the latter is limited to a hundred.
First you need to get the total number of subscribers, they come when you request "count": 32363
Now we need to write this into a variable and start iterating (example code, I write in a dream).

$i=0;
while ($i < $count) {

    // тут отправляем запрос:
    // offset - $i
    // count - 100
    

    $i+=100;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question