mggflow/vk-automatic

v1.1.2 2022-07-10 01:21 UTC

This package is auto-updated.

Last update: 2024-07-11 00:38:48 UTC


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);