mralston/cxm

用于操作Connex CXM拨号器的库。

v1.0.11 2024-07-02 14:41 UTC

This package is auto-updated.

Last update: 2024-09-02 15:06:35 UTC


README

简介

用于操作Connex CXM拨号器的库。

配置

您可以将配置文件发布如下

php artisan vendor:publish --tag=cxm-config

将以下项目添加到您的 .env 文件中

CXM_CLIENT_ID=
CXM_SECRET=
CXM_TOKEN=
CXM_ENDPOINT=https://apigateway-your-company-name-cxm.cnx1.cloud

CXM_CLIENT_IDCXM_SECRET 在拨号器网页界面中设置,路径为:

管理 > API > API凭据 > 创建API凭据

CXM_TOKEN 在拨号器网页界面中设置,路径为:

管理 > API > API客户端 > 创建API客户端

CXM_ENDPOINT 的值是API端点的URL,由Connex提供。其格式将与上面的示例类似。

用法

以下是库的基本功能工作方式

// Create a Contact DTO
$contact = Contact::make([
    // ...attributes
]);

// Create a DataList DTO
$dataList = DataList::make([
    'id' => '...' 
]);

// Load the contact into the dialler.
// $result reflects the Contact record created on the dialler and contains its ID
$result = Cxm::customerLoadSingle($contact, $dataList);

安全漏洞

请直接通过电子邮件将安全漏洞发送给我。

许可协议

PDF是开源软件,根据MIT许可协议授权。