Skip to content

Instantly share code, notes, and snippets.

@tdakkota
Created August 13, 2020 10:41
Show Gist options
  • Save tdakkota/08c62bbebb8c66b405bb8ae7f0dee9b4 to your computer and use it in GitHub Desktop.
Save tdakkota/08c62bbebb8c66b405bb8ae7f0dee9b4 to your computer and use it in GitHub Desktop.
var id = 1;
var users = [];
var i = 0;
while(i < 25) {
var req = API.groups.getMembers({"group_id":id,"count":1000,
"offset":i*1000,"fields":"sex, bdate, city, country, photo_50, photo_100, photo_200_orig, photo_200, photo_400_orig, photo_max, photo_max_orig, online, online_mobile, lists, domain, has_mobile, contacts, connections, site, education, universities, schools, can_post, can_see_all_posts, can_see_audio, can_write_private_message, status, last_seen, common_count, relation, relatives"});
users.push(req.items);
i = i + 1;
}
return users;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment