客服操作日志

请求 URL
GET /apiv2/kchat/stats/ServiceLoginDetails.json
Query 参数
NameRequiredTypeComment
startdate开始时间,格式 YYYY-mm-dd
enddate结束时间,格式 YYYY-mm-dd
group_idint客服组 id
keywordsstring搜索客服姓名的关键词
operatestring操作名称
pageint页码
per_pageint分页尺寸

operate 的可选值有:online(在线)、offline(离线)、busy(忙碌)、setMax(设置最多接待数)、login(登录)、connect(连接)、disconnect(连接断开)、forceOffline(强制离线)、allOffline(系统判定离线)

请求示例
GET /apiv2/kchat/stats/ServiceLoginDetails.json?start=2019-01-01&end=2019-01-07&per_page=30&page=1
返回说明
NameTypeComment
idint记录 id
user_namestring客服姓名
user_idint客服 id
operatestring操作名称
platformstring操作平台
max_serveint最大接待人数
createdint操作的时间戳
返回示例
{
    "logs":[
        {
            "id":42518022,
            "user_name":"客服小刘",
            "user_id":13030166,
            "operate":"online",
            "platform":"web",
            "max_serve":0,
            "created":1551491880
        },
        ......
    ],
    "meta":{
        "pagination":{
            "total":150,
            "page":1,
            "pageSize":30
        }
    }
}