获取多个分机状态
接口地址
GET/webAPI/webHttpAPI.php
参数:
| 参数名 |
是否必须 |
类型 |
参数值 |
说明 |
| userName |
是 |
string |
公司账号名 |
公司账号名 |
| passWord |
是 |
string |
密钥 |
通过获取密钥接口生成 |
| model |
是 |
string |
getAllExtenStatus |
调用方法 |
| agent |
是 |
string |
分机 |
|
请求示例
http://xxx.xxx.xxx.xxx/webAPI/webHttpAPI.php?model=getAllExtenStatus&agent=801&userName=xxx&passWord=xxxx
返回信息
{"status":true,"msg":"[{\"extension\":\"8001\",\"status\":\"0\",\"dnd\":\"0\",\"dnd_type\":\"\",\"work_no\":\"\",\"ut\":\"1685503237\"},{\"extension\":\"8002\",\"status\":\"4\",\"dnd\":\"0\",\"dnd_type\":\"\",\"work_no\":\"\",\"ut\":\"1685437399\"},{\"extension\":\"8003\",\"status\":\"4\",\"dnd\":\"0\",\"dnd_type\":\"0\",\"work_no\":\"\",\"ut\":\"1685365343\"}]"}
| 参数名 |
类型 |
参数值 |
| status |
boolean |
true false |
| msg |
string |
|
| ∟extension |
string |
分机 |
| ∟status |
string |
分机状态 0 空闲 1 通话中 4未注册 8震铃 |
| ∟dnd |
string |
示忙状态 1示忙中 0非示忙 |
| ∟work_no |
string |
工号 |
| ∟ut |
string |
更新时间 |