插件http接口
来自uucall
目录
手动外呼
说明
接口类型:HTTP请求
接口使用账户:企业账户
接口地址:localhost\127.0.0.1
接口返回值:JSON格式返回结果
示例及代码
Function xxxxx() { var callAjax =$.ajax({ url: 'http://127.0.0.1:12307?cmd=dial_out&dial_number=0133xxxxxxxx&jsonpcallback=?', dataType: 'JSONP', time: 5000, error:function(json){ }, success:function(json){ if(json.result == ' success '){ }else if(json.result == ' ext_offline '){ }else if(json.result == ' client_type_error '){ } } }); }
参数说明
类型 | 参数名 | 描述 | 是否必填 | 数据类型 | 固定值 |
---|---|---|---|---|---|
参数 | localhost | 本机地址 | true | string | 127.0.0.1 |
参数 | port | 端口 | true | string | 12307 |
参数 | cmd | 执行动作,手动外呼 | true | string | dial_out |
参数 | dial_number | 电话号码 | true | string | 无 |
参数 | jsonpcallback | 回调函数设置,返回的JSON数据所在函数 | true | string | 无 |
响应
返回JSON格式数据:{result:返回结果, msg:描述}
result | msg |
---|---|
success | 操作成功 |
ext_offline | 分机未登录 |
client_type_error | 客户端类型错误(不是使用的web插件) |
一键外呼
说明
接口类型:HTTP请求
接口使用账户:企业账户
接口地址:localhost\127.0.0.1
接口返回值:JSON格式返回结果
示例及代码
参数说明
响应
挂断电话
说明
接口类型:HTTP请求
接口使用账户:企业账户
接口地址:localhost\127.0.0.1
接口返回值:JSON格式返回结果
示例及代码
参数说明
响应
接听电话
说明
接口类型:HTTP请求
接口使用账户:企业账户
接口地址:localhost\127.0.0.1
接口返回值:JSON格式返回结果
示例及代码
参数说明
响应
电话转接
说明
接口类型:HTTP请求
接口使用账户:企业账户
接口地址:localhost\127.0.0.1
接口返回值:JSON格式返回结果
示例及代码
参数说明
响应
发生按键
说明
接口类型:HTTP请求
接口使用账户:企业账户
接口地址:localhost\127.0.0.1
接口返回值:JSON格式返回结果