按天查询客服账号的在线状态记录。如:登录,下线,挂起等 有别于taobao.qianniu.cloudkefu.statuslog.get接口,这个接口可以查询30天内的流水,不需要分页查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
account_ids | String [] | 必须 | 3613919119,3613919119 |
|
子帐号列表,最多10个 |
start_date | Date | 必须 | 1970-01-01 00:00:00 | 查询开始日期,只有日期有效,时间忽略 | |
end_date | Date | 必须 | 1970-01-01 00:00:00 | 查询结束日期,只有日期有效,时间忽略 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
record_list | RecordList [] | module | |
|
|||
cause | Json | cause | |
error_map | Json | 123 | errorMap |
attachment | Json | attachment | |
solution | String | solution | |
version | Number | version |
1 2 3 4 5 6 7 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); QianniuCloudkefuOnlinestatuslogGetRequest req = new QianniuCloudkefuOnlinestatuslogGetRequest(); req.setAccountIds( "3613919119,3613919119" ); req.setStartDate(StringUtils.parseDateTime( "1970-01-01 00:00:00" )); req.setEndDate(StringUtils.parseDateTime( "1970-01-01 00:00:00" )); QianniuCloudkefuOnlinestatuslogGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | < qianniu_cloudkefu_onlinestatuslog_get_response > < record_list > < record_list > < main_account_id >3613919119</ main_account_id > < status >1</ status > < type >0</ type > < account_id >3613919119,3613919119</ account_id > < change_time_ts >1517903431367</ change_time_ts > < change_time >2018-08-25 00:00:00</ change_time > < domain >cntaobao</ domain > < gmt_create >2018-08-25 00:00:00</ gmt_create > </ record_list > </ record_list > < cause ></ cause > < error_map >123</ error_map > < attachment ></ attachment > < solution ></ solution > < version ></ version > </ qianniu_cloudkefu_onlinestatuslog_get_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|