antsar / incontact
Client class for the inContact API
0.2.2
2018-02-02 18:55 UTC
Requires (Dev)
This package is not auto-updated.
Last update: 2025-03-02 06:56:31 UTC
README
PHP client library for the inContact API.
Installation
Composer is the recommended way to install this library.
composer require antsar/incontact
Usage
// 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
Status
This library is very rudimentary, and could be improved. Contributions (issues or pull requests) are welcome and appreciated.
Changes
See CHANGELOG.md.
Development
See CONTRIBUTING.md.