PHP code example of mggflow / vk-automatic
1. Go to this page and download the library: Download mggflow/vk-automatic 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/ */
mggflow / vk-automatic example snippets
$token = "access token for VK API";
$apiVersion = 5.131;
$api = new API($token, $apiVersion);
$task = new EternalOnline($this->api);
// Second argument is null because this task dont need any data.
$result = $task->execute($api);
// Result object fields is different for tasks.
var_dump($result->onlineResult);