2.2 获取呼出明细
地 址
Path: /Interface/{access_token}/CallOut HTTP Method: Post URL Params: 无 Request Headers: 无 Request Body: {"start_time":"2016-09-01 00:00:00","end_time":"2016-09-30 00:00:00","start":"11","limit":"10"}或者 {"start_time":"2016-09-01 00:00:00","end_time":"2016-09-30 00:00:00","session_id":"7446******842482245"} Response Body: 详情参见示例返回值,返回的 JSON 数据中会包含除上述属性之外的一些其他信息,均可以忽略。
属性说明
属性 | 类型 | 约束 | 说明 |
start_time | date | 必选 | 开始时间(查询条件) 时间必须控制在30天内 |
end_time | date | 必选 | 结束时间(查询条件) 时间必须控制在30天内 |
start | int | 非必选 | 从第几条开始取,正整数,大于等于0 |
limit | int | 非必选 | 取多少条,正整数,大于0,小于10000 |
session_id | String | 非必选 | session id编号正整数,大于0,小于10000 |
access_token | String | 必选 | 认证成功返回的accessToken |
服务端响应内容
{ "status":"0", "message":[{ "data": [ { "sessionId": "7446******842482245", "startTime": "2016-06-02 11:02:15", "endTime": "2016-06-02 11:13:11", "remoteUrl": "tel:01******039", "localUrl": "sip:91**25", "duretion": "641", "end_type": "通话挂断", "cIvrKey": "", "path": "http://***/ims_103ex/record/CC5001/Agent/20160602/C***01_0x_2016******0215_tel-01******039_sip-91**25_101.wav", "agentId": "101", "call_Type": "1", "r_startTime": "2016-06-02 11:02:30.0", "r_endTime": "2016-06-02 11:13:11.0", "record_Nama": "record/CC5001/Agent/20160602/CC5001_0x_2016******0215_tel-01******039_sip-91**25_101.wav" }, { "sessionId": "7446******859259463", "startTime": "2016-06-02 11:02:15", "endTime": "2016-06-02 11:14:31", "remoteUrl": "tel:01******853", "localUrl": "sip:91**22", "duretion": "713", "end_type": "通话挂断", "cIvrKey": "", "path": "http://***/ims_103ex/record/CC5001/Agent/20160602/C***01_0x_2016*****10215_tel-01*****0853_sip-91**22_308.wav", "agentId": "308", "call_Type": "1", "r_startTime": "2016-06-02 11:02:38.0", "r_endTime": "2016-06-02 11:14:31.0", "record_Nama": "record/CC5001/Agent/20160602/C***01_0x_2016******0215_tel-01******853_sip-91**22_308.wav" } ], "count": "63", "limit": "11", "start": "10" }] }
{ "status":"0", "message":[{ "data": [ { "sessionId": "7446******842482245", "startTime": "2016-06-02 11:02:15", "endTime": "2016-06-02 11:13:11", "remoteUrl": "tel:01******039", "localUrl": "sip:91**25", "duretion": "641", "end_type": "通话挂断", "cIvrKey": "", "path": "http://***/ims_103ex/record/CC5001/Agent/20160602/C***01_0x_2016******0215_tel-01******039_sip-91**25_101.wav", "agentId": "101", "call_Type": "1", "r_startTime": "2016-06-02 11:02:30.0", "r_endTime": "2016-06-02 11:13:11.0", "record_Nama": "record/CC5001/Agent/20160602/CC5001_0x_2016******0215_tel-01******039_sip-91**25_101.wav" } ], "count": "1", "limit": "", "start": "" }] }
{ "status":"1", "message":"操作失败" }
{ "status":"2", "message":"认证失败" }