lichi/vk-sdk

Core for lichi Framework

1.0.3 2021-02-20 21:52 UTC

This package is auto-updated.

Last update: 2024-06-16 20:03:51 UTC


README

lichi-vk-sdk

For install:

composer require lichi/vk-sdk

Simple work with sdk

include "vendor/autoload.php";

use Lichi\Vk\Sdk\ApiProvider;

$apiProvider = new ApiProvider("VK_TOKEN");
$apiProvider->documents->downloadFromUrl("URL_DOCUMENTS", "file.jpg");
$attachment = $apiProvider->documents->upload("file.jpg", USER_ID);
$message_id = $apiProvider->messages->send(USER_ID, "Text Message", ['attachment'=>$attachment]);