invit / livechat-api-client-php
This package is abandoned and no longer maintained.
The author suggests using the livechat/api-client-php package instead.
There is no license information available for the latest version (dev-master) of this package.
The LiveChat API SDK provides methods for all API functions.
dev-master
2015-06-12 09:11 UTC
Requires (Dev)
- php: >=5.4.0
- phpunit/phpunit: ~4.6
This package is auto-updated.
Last update: 2019-10-01 15:45:21 UTC
README
PHP library with ready-to-use LiveChat API implementation.
Quick example
// 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());
}