mggflow / vk-automatic
Installs: 21
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mggflow/vk-automatic
Requires
- mggflow/vk-api: ^2.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
About
This package provides automation of usual VK tasks throw API.
Usage
To install:
composer require mggflow/vk-automatic
Example of setting online status for account:
$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);