PHP code example of ezaki113 / vk-callback
1. Go to this page and download the library: Download ezaki113/vk-callback library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ezaki113 / vk-callback example snippets
declare (strict_types = 1);
use VkCallback\CallbackServer;
use VkCallback\Client;
our confirm callback token');
$server->on('wall_reply_new', function (array $data) use ($client) {
yield from $client->call('wall.deleteComment', [
'owner_id' => -$data['group_id'],
'comment_id' => $data['object']['id']
]);
});
$server->run(7070);