Downloads
Stars
Version
Library for working with Connex CXM dialler.
You may publish the config file as follows:
php artisan vendor:publish --tag=cxm-config
Add the following items to your .env file:
CXM_CLIENT_ID=
CXM_SECRET=
CXM_TOKEN=
CXM_ENDPOINT=https://apigateway-your-company-name-cxm.cnx1.cloud
The CXM_CLIENT_ID
and CXM_SECRET
are set up on the dialler web interface at:
Admin > API > API Credentials > Create API Credentials
The CXM_TOKEN
is set up on the dialler web interface at:
Admin > API > API Clients > Create API Clients
The CXM_ENDPOINT
value is the URL of the API endpoint, supplied by Connex. It will be similar in format to the example above.
Here are how the basic functions of the library work:
// 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);
Please e-mail security vulnerabilities directly to me.
PDF is open-sourced software licenced under the MIT license.