ianchadwick / dxi
DXI API 库
dev-master
2016-11-04 17:37 UTC
Requires
- php: >=5.4
- guzzlehttp/guzzle: ~5.0
This package is not auto-updated.
Last update: 2024-09-14 17:37:28 UTC
README
出站/入站呼叫管理。自动拨号与联系人排队
此包允许您通过其API添加联系人。查看网站
要求
PHP 5.4+
使用Composer安装
将 ianchadwick/dxi 添加到您的 composer.json 文件中的 require 部分
"require": {
"ianchadwick/dxi": "1.0.*"
}
然后使用composer更新您的项目
composer update
基本用法
use Dxi\Dxi;
use Dxi\Commands\Dataset\Contact\Create;
class MyClass {
public function createContact()
{
// init the Dxi helper
$dxi = new Dxi('myusername', 'mypassword');
// create the command with the Dxi object
$command = new Create($dxi);
// set the params
$command->setParams([
'dataset' => 10,
'firstname' => 'Ian',
'lastname' => 'Chadwick',
'ddi_mobile' => '07800000000'
]);
// create the contact
$response = $dxi->fire($command);
}
}