invit/livechat-api-client-php

此包已被废弃,不再维护。作者建议使用livechat/api-client-php包。
此包最新版本(dev-master)没有提供许可证信息。

LiveChat API SDK提供了所有API函数的方法。

dev-master 2015-06-12 09:11 UTC

This package is auto-updated.

Last update: 2019-10-01 15:45:21 UTC


README

PHP库,包含现成的LiveChat API实现。

快速示例

// When not using a PSR-0 compliant autoloader, only the API file needs to be
// included. If you are using a PSR-0 autoloader, it should be configured to
// load the LiveChat namespace from the lib/LiveChat folder or whichever
// directory you choose to move the LiveChat folder to.
require_once('lib/LiveChat/API.php');

try {
    $LiveChatAPI = new \LiveChat\API(/* login name */, /* API key */);
    var_dump($LiveChatAPI->agents->get());
}
catch (Exception $e) {
    die($e->getCode().' '.$e->getMessage());
}