php 调用demo:

/**
 ****************************************
 * @功能 ant api demo
 * @author maspop@gmail.com
 * @copyright zmrh 2020
 * @version $id
 ****************************************
 */
define('CC_IP','http://cc.wei-fu.cn');
define('API_URL',CC_IP."/webAPI/webHttpAPI.php?");



function http_get($url){
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
    $result = curl_exec($ch);
    return $result;
}

//点击拨号
//调用接口前需要确认分机已注册在线

//公共参数
//加密查看文档地址 http://doc.wei-fu.cn/docs/show/75
$data['userName'] = 'test';
$data['passWord'] = '9da06d5eb0bcd66986c657e42929bdb298b00f03cb4d2262fbb33c04f1560229';


function clickCall($data){
    $data['model'] = 'OnClickCall';//调用的方法
    $data['exten'] = '805';//坐席的分机
    $data['toTel'] = 18520859587;//要呼叫的号码
    $url = API_URL.http_build_query($data);

    $result = http_get($url);
    var_dump($result);
}


//示忙
//http://xxx.xxx.xxx.xxx/webAPI/webHttpAPI.php?model=setBuys&agent=801&userName=xxx&passWord=xxx
function setBuys($data){
    $data['model'] = 'setBuys';//调用的方法
    $data['agent'] = '805';//坐席的分机
    $url = API_URL.http_build_query($data);
    $result = http_get($url);
    var_dump($result);
}
//示闲
//http://xxx.xxx.xxx.xxx/webAPI/webHttpAPI.php?model=setIdle&agent=801&userName=xxx&passWord=xxx
function setIdle($data){
    $data['model'] = 'setIdle';//调用的方法
    $data['agent'] = '1095';//坐席的分机
    $url = API_URL.http_build_query($data);
    $result = http_get($url);
    var_dump($result);
}


clickCall($data);

//其它接口请参考 接口文档地址
//http://doc.wei-fu.cn/docs/show/76