mikeyp / veelo-api-client
Veelo Inc API 的 Web 服务客户端。
0.4.0
2017-04-05 19:55 UTC
Requires
This package is auto-updated.
Last update: 2024-09-21 20:48:53 UTC
README
这是一个用于访问 Veelo API 的 PHP 库。
安装
将此需求添加到您的 composer.json
文件中
"require": {
"mikeyp/veelo-api-client": "@stable"
}
用法
示例
use \VeeloApi\VeeloApiClient; // Initialize the client. $client = VeeloApiClient::create(); // Get an authorization token. $response = $client->generateToken('user@example.com', 'password'); echo $response['token']; // Initialize the client with a token. $client = VeeloApiClient::create(['token' => $token]); // List admin groups. $response = $client->listAdminGroups(); // List circles in an admin group. $response = $client->listCircles($admingroup_id); // Upload a file. $response = $client->uploadFile($admingroup_id, fopen('path/to/file.pdf', 'r'));
待办事项
- 完成用户和管理组操作
- 测试