获取分机状态及签入时长
接口地址
GET/webAPI/webHttpAPI.php
参数:
| 参数名 |
是否必须 |
类型 |
参数值 |
说明 |
| userName |
是 |
string |
公司账号名 |
公司账号名 |
| passWord |
是 |
string |
密钥 |
通过获取密钥接口生成 |
| model |
是 |
string |
getExtenLineInfo |
调用方法 |
| exten |
是 |
string |
分机 |
|
请求示例
http://xxx.xxx.xxx.xxx/webAPI/webHttpAPI.php?model=getExtenLineInfo&exten=801&userName=xxx&passWord=xxxx
返回信息
{
"status": true,
"msg": {
"dnd": "1",
"dnd_type": "",
"status": "0",
"call_after": 0,
"in_time": 7809,
"check_inout":"in"
}
}
| 参数名 |
类型 |
参数值 |
| status |
boolean |
true false |
| msg |
string |
消息 |
| ∟status |
string |
分机状态 0 空闲 1 通话中 4未注册 8震铃 |
| ∟dnd |
string |
示忙状态 1示忙中 0非示忙 |
| ∟dnd_type |
string |
示忙类型 |
| ∟call_after |
string |
是否话后 1是 0否 |
| ∟in_time |
string |
实时签入时长(秒) |
| ∟check_inout |
string |
签入状态 in 签入 out 签出 |