客服状态时长
请求URL
GET /apiv2/kchat/stats/ServiceStateLengthOfTime.json
Query参数
Name | Required | Type | Comment |
---|
start | 是 | date | 传递格式:2017-7-10 |
end | 是 | date | 传递格式:2017-7-10 |
agent_ids | 否 | array | 传递格式:[10001,10002] |
返回示例
Success {
"summay":
{
"busyAverage":0, //平均忙碌时长
"busyTotal":10, //忙碌总时长
"onlineAverage":1270, //平均在线时长
"onlineTotal":3000, //在线总时长
},
"agents":[
{
"id":100002, //客服ID
"busyAverage":10, //平均忙碌时长
"busyTotal":5, //忙碌总时长
"onlineAverage":30, //平均在线时长
"onlineTotal":2000 //在线总时长
},
... ]
}
Fail {
"error":{
"code":10001, //状态码
"message":"error tip" //提示信息
}
}