客服登录状态日志列表
GET /apiv2/kchat/chats/AgentLog.json
调用权限
agent
Query参数
Name | Required | Type | Comment |
---|---|---|---|
start | 是 | string | 按创建时间筛选,开始时间,如:2016-01-01 |
end | 是 | string | 按创建时间筛选,结束时间,如:2016-01-01 |
page | 否 | integer | 页码,默认为 1 |
operate | 否 | string | 默认空,全部状态 |
operate 对应的参数: online 【在线】 offline 【离线】 busy 【忙碌】 setMax 【设置最多接待数】 login 【登录】 connect 【连接】 disconnect 【连接断开】 forceOffline 【强制离线】 allOffline 【系统判定离线】
curl示例
curl https://{subdomain}.kf5.com/apiv2/kchat/chats/AgentLog.json -v -u {email_address}:{password}
返回示例
{ "logs": [ { "created": 1501147530, //执行时间 "user_id": 22799645, //执行者id "operate": "disconnect", //执行动作 "platform": "web", //所在平台 "max_serve": 0, // 接待上限 "user_name": "IM2beta王浩", //执行者昵称 "log_id": 25509983 //日志Id }, ] }