mrsuh / vk-api
API auth for social network vkontakte
Installs: 92
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/mrsuh/vk-api
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)