I was looking into an API wrapper for Vicidial API and I saw that is out of update (the last update was on Oct 24, 2017) so create my own version so will make it easy to integrate any PHP application. On this version, I added support to all Vicidial API functions.
Features:
- Added HTTPS support
- All Vicidial Agent API support
- Created documentation based on Vicidial on a Markdown page instead of a text file so gonna be easy to read it.
- Composer installation support
- Easy to integrate any CRM, Ticket system, or PHP based application
- Focus on simplicity and easy to use
Repository
https://github.com/masterfermin02/vicidial-api-wrapper
- Code: Select all
<?php
require_once 'vendor/autoload.php';
use Vicidial\Api\Wrapper\Agent\Client;
try {
$vicidialAPI = new Client("127.0.0.1", "6666", "123");
$agent_user = '1000';
$vicidialAPI->ra_call_control($agent_user, [
'stage' => 'INGROUPTRANSFER',
'ingroup_choices' => 'DEFAULTINGROUP',
'value' => 'Y0316001655000402028'
]);
} catch (Exception $e) {
echo 'Exception: ', $e->getMessage(), "\n";
}