Answer the question
In order to leave comments, you need to log in
How to get group admin id using groups.getMembers method?
I make a request:
$membersadmin = json_decode(file_get_contents("https://api.vk.com/method/groups.getMembers?group_id={$groupId}&count=100&filter=managers&access_token={$tokenadmin}"),true);
htmlspecialchars($membersadmin['response']['users'][0]['id'])
Answer the question
In order to leave comments, you need to log in
$membersadmin['response']['users'] [0] ['id']
Loop through
foreach($membersadmin['response']['users'] as $user) {
$adminIds[] = $user['id'];
}
# $adminIds - нумерованный массив айдишников
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question