gufy/livechat-api
最新稳定版本:v1.0.0
Composer 安装命令:
composer require gufy/livechat-api
包简介
A simplified PHP Livechatinc API
README 文档
README
PHP library with ready-to-use LiveChat API implementation.
Installation
add this package to your composer.json by running this command
composer require gufy/livechat-api
or add this package manually to your composer.json
{
"require":{
"gufy/livechat-api":"~1"
}
}
Available Models
This models are available and ready to use
- Agent
- CannedResponse
- Chat
- Goal
- Greeting
- Group
- Report
- Status
- Tag
- Ticket
- Visitor
- Webhook
Usage
Try this code below
<?php include 'vendor/autoload.php' use Gufy\LivechatApi\LivechatApi; use Gufy\LivechatApi\Models\Agent; $api = new LivechatApi('your-user-name', 'your-api-key'); // retrieving all agents $agents = $api->agent->get(); print_r($agents); // or the other way, and of course you have to declare LivechatApi configuration first before using class below $class = new Agent; $agents = $class->get(); // it will have the same result as the code above print_r($agents);
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-22