客服状态时长

GET /apiv2/voice/agent_state_stats.json
Query参数
NameRequiredTypeComment
created_startnumber起始时间
created_endnumber截止时间
group_idnumber客服组ID
调用权限

admin

curl 示例
curl https://{subdomain}.kf5.com/apiv2/voice/agent_state_stats.json?created_start=20170703&created_end=20170726 \
        -v -u {email_address}:{password}
NameTypeRead-onlyComment
agentidintegeryes语音账号ID
agent_namestringyes客服名称
online_durationstringyes总在线时长
avg_online_durationintegeryes日平均在线时长
busy_durationintegeryes总忙碌时长
avg_busy_durationintegeryes日平均忙碌时长
break_durationstringyes总小休时长
avg_break_durationintegeryes日平均小休时长
返回示例
Status: 200 OK{
    "agent_state_stats": [
        {
            "agentid": 1096,
            "agent_name": "王金云",
            "online_duration": 84895,
            "avg_online_duration": 3537,
            "busy_duration": 0,
            "avg_busy_duration": 0,
            "break_duration": 0,
            "avg_break_duration": 0
        }
    ]}