mrsuh / vk-api

社交网络Vkontakte的API认证

v1.4.2 2019-09-14 04:53 UTC

This package is auto-updated.

Last update: 2024-09-10 14:15:14 UTC


README

安装

首先,您必须在vk.com的[应用页面](https://vk.com/apps?act=manage)创建您的应用程序

composer require mrsuh/vk-api

用法

<?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

有用的链接