PHP client library for the inContact API.
Composer is the recommended way to install this library.
composer require antsar/incontact
// Autoload the inContact class.
require __DIR__ . '/vendor/autoload.php';
// Create an API client instance.
$inContact = new \antsar\incontact\InContact(
'exampleApp', // Application Name as registered with inContact
'exampleCompany', // Vendor Name as registered with inContact
'012345', // Business Unit number as registered with inContact
'exampleUser', // inContact User Name
'hunter2' // inContact User Password
);
// Get status for all agents
$agents = $inContact->get('/agents/states');
// Request a call-back
$response = $inContact->post('/queuecallback', ['phoneNumber' => '8005550100']);
For more details, please see:
- InContact class documentation - API documentation for the
\antsar\InContact\InContact
class. - inContact API documentation - list of available API methods
This library is very rudimentary, and could be improved. Contributions (issues or pull requests) are welcome and appreciated.
See CHANGELOG.md.
See CONTRIBUTING.md.