Answer the question
In order to leave comments, you need to log in
VK Api request groups.getMembers. How does it work?
Good day.
I am writing a parser for VKontakte, one of the blocks pulls out the id of the group members, here is the code.
ArrayList<String> getLinksList() throws IOException, ClientException, ApiException {
ArrayList<String> linksList = new ArrayList<>();
List<Integer> linkList = vkApiClient.groups().getMembers(actor).groupId(getGroupLink()).offset(getOffset()).execute().getItems();
for (Integer friend : linkList) {
linksList.add("https://vk.com/id"+friend+"\r\n");
}
return linksList;
}
Integer getMembersCount() throws ClientException, ApiException {
actor = AuthorizationOnVkCom.getActor();
return vkApiClient.groups().getMembers(actor).groupId(getGroupLink()).execute().getCount();
}
Answer the question
In order to leave comments, you need to log in
I confess. I set the delay to 100ms, nothing worked.
Experimentally, I found out the minimum possible delay of 221ms (more is possible, but why?), It no longer perceives less delay.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question