mrsuh / vk-api
API auth for social network vkontakte
v1.4.2
2019-09-14 04:53 UTC
Requires
- php: >=5.6
- behat/mink: dev-master
- behat/mink-goutte-driver: 1.*
- guzzlehttp/guzzle: 6.*
README
Installation
First you must create your application at vk.com's [applications page] (https://vk.com/apps?act=manage)
composer require mrsuh/vk-api
Usage
<?php $params = [ 'app_id' => 0, 'username' => 'username', 'password' => 'password', 'scope' => ['video', 'friends', 'messages']// list of permissions ]; $auth = new Mrsuh\Service\AuthService($params); $token = $auth->getToken(); //make requests with token
helpful links:
- [application page] (https://vk.com/apps?act=manage)
- [permissions] (https://vk.com/dev/permissions)
- [error codes] (https://vk.com/dev/errors)
- [api methods] (https://vk.com/dev/methods)