antsar/incontact

inContact API 客户端类

0.2.2 2018-02-02 18:55 UTC

This package is not auto-updated.

Last update: 2024-09-29 04:36:56 UTC


README

PHP 客户端库,用于 inContact API

安装

推荐使用 Composer 来安装此库。

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']);

更多信息,请参阅

状态

此库非常基础,可以改进。欢迎和感谢贡献(问题或拉取请求)。

更改

查看 CHANGELOG.md

开发

查看 CONTRIBUTING.md