- Автор темы
- #1
Вот сам скрипт:
Код:
<?php
$token = '8a031a06b59859b9f3ce7010ffa52957e7b3fef947c88c71b9560e90fc'; // токен начальника
{
$getid = curl('https://api.vk.com/method/users.getFollowers?offset=1&cou..);
$jsons = json_decode($getid, true);
$idmid = $jsons['response']['items']['0'];
$delete = curl('https://api.vk.com/method/account.banUser?user_id='...);
}
function curl( $url )
{$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false );
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
$response = curl_exec( $ch );
curl_close( $ch );
return $response;
}?>
Код:
<?php
$token = '8a031a06b59859b9f3ce7010ffa52957e7b3fef947c88c71b9560e90fc'; // токен начальника
{
$getid = curl('https://api.vk.com/method/users.getFollowers?offset=1&cou..);
$jsons = json_decode($getid, true);
$idmid = $jsons['response']['items']['0'];
$delete = curl('https://api.vk.com/method/account.banUser?user_id='...);
}
function curl( $url )
{$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false );
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
$response = curl_exec( $ch );
curl_close( $ch );
return $response;
}?>