ianchadwick/dxi 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ianchadwick/dxi

Composer 安装命令:

composer require ianchadwick/dxi

包简介

Library for the DXI API

README 文档

README

Outbound/Inbound Call Management. Automated Dialler & Contact Queuing

This package allows you to add contacts using their API.See website

Requirements

PHP 5.4+

Installation using Composer

Add ianchadwick/dxi to the require part of your composer.json file

"require": {
  "ianchadwick/dxi": "1.0.*"
}

Then update your project with composer

composer update

Basic Usage

use Dxi\Dxi;
use Dxi\Commands\Dataset\Contact\Create;

class MyClass {
  public function createContact()
  {
    // init the Dxi helper
    $dxi = new Dxi('myusername', 'mypassword');
    
    // create the command with the Dxi object
    $command = new Create($dxi);
    
    // set the params
    $command->setParams([
        'dataset' => 10,
        'firstname' => 'Ian',
        'lastname' => 'Chadwick',
        'ddi_mobile' => '07800000000'
    ]);
    
    // create the contact
    $response = $dxi->fire($command);
  }
}

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-25