antsar/incontact

Client class for the inContact API

0.2.2 2018-02-02 18:55 UTC

This package is not auto-updated.

Last update: 2024-04-14 01:52:09 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:

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.