richbarrett/crisp-php-sdk
Composer 安装命令:
composer require richbarrett/crisp-php-sdk
包简介
PHP SDK for the Crisp.im API
README 文档
README
Overview
This was created as a lightweight PHP SDK for Crisp.im.
It does not contain methods for every API call but is very easy to extend by adding methods to crispsdk.php it uses Httpful to make requests to the API and returns an array with quick access to key data and the raw Httpful\Response object so you can handle the result however you like.
Usage
- First obtain your identifier and key using:
curl -H "Content-Type: application/json" -X POST -d '{"email":"YOUR_ACCOUNT_EMAIL","password":"YOUR_ACCOUNT_PASSWORD"}' https://api.crisp.chat/v1/user/session/login
- Use as follows:
use richbarrett\crispsdk\crispsdk;
$identifier = 'YOUR_IDENTIFIER';
$key = 'YOUR_KEY';
$sdk = new crispsdk;
$sdk->authenticate($identifier, $key);
$r = $sdk->listWebsites();
print_r($r);
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-21