pendalff / vk-api
1.2.0
2014-08-19 07:10 UTC
Requires
- ailove-dev/vk-php-sdk: dev-master
- olamedia/nokogiri: dev-master
- rmccue/requests: 1.*
This package is auto-updated.
Last update: 2024-09-07 05:44:04 UTC
README
具有获取令牌的认证。如果使用认证对象,将完全跟踪令牌。
遵循MIT许可证MIT,并按原样提供。
工作原理
为了使用库,需要
- 在联系人中创建 独立 应用程序
- 将登录名、联系人的密码和应用程序的+ID插入到变量中
- 运行脚本
库本身获取令牌。为此需要登录名和密码。
示例
可以在 examples 中查看使用示例
use VkApi\Auth; use VkApi\Api; $scope = array(); $token_path = __DIR__; $auth = new Auth($login, $password, $token_path); $api = new Api($client_id, $scope, $auth); $result = $api->call('method', array('option1'=>'value1'));
安装
{
"require": {
"mad-tools/vk-api": "dev-master"
}
}