eslavondigital/vk-bot-api

The package is designed to organize convenient interaction with VK API when developing chatbots for the VK platform.

v1.6 2020-04-12 11:17 UTC

This package is auto-updated.

Last update: 2024-05-10 19:20:27 UTC


README

php version Latest Stable Version License

The package is designed to organize convenient interaction with VK API when developing chatbots for the VK platform.

Installation

Install the latest version with

$ composer require eslavondigital/vk-bot-api

Basic Usage

<?php
require_once __DIR__.'/vendor/autoload.php';

use Eslavon\VkBotApi\VkBotApi;

$http_client = new GuzzleHttp\Client();
$access_token = 'b519e3d2ee8a0b30436a39817186c7907561e8ad37cc15b55cb452c47e9901c617';
$version_api = "5.103";
$language = "ru";
$vk = new VkBotApi($http_client, $access_token, $version_api, $language);
$result = $vk->users()->get("251510315");
var_dump($result);

/**
 * { "response":
 *  [{
 *      "id":251510315,
 *      "first_name":"Виктор",
 *      "last_name":"Виноградов",
 *      "is_closed":false,
 *      "can_access_closed":true,
 *      "sex":2
 *  }]
 * }
 *  
 */

Documentation

Support Eslavon Digital Financially

Get supported Eslavon Digital and help fund the project.

Yandex.Money: 410016014512747

QIWI: https://qiwi.com/n/ESLAVON

Author

Vinogradov Victor - eslavon.work.victor@gmail.com - https://vk.com/winogradow.wiktor

License

All Elavon Digital products are licensed under the MIT license - see the LICENSE file for details