監聽記錄查詢
調用地址? ? ?:? http://x:x/paas/Interface/{accesstoken}/monitorRecord
Http請求方式 :? Post/JSON
參數名 | 類型 | 說明 |
startTime | Date(String) | 監聽記錄創建時間(格式:yyyy-MM-dd HH:mm:ss) |
limit | String | 查詢條數 |
JSON實例:
{ "startTime":"2018-02-27?00:00:00", "limit":"100" }
返回參數:
參數名 | 類型 | 說明 |
Status | String | 狀態碼,0成功,? 1失敗,2認證失敗 |
Message | String | 成功返回錄音數據/失敗返回操作失敗 |
sessionId | String | 通話唯一標識 |
startTime | String | 開始時間 |
endTime | String | 結束時間 |
duration | String | 監聽時長(秒) |
agentId | String | 監聽者Id |
createTime | String | 創建監聽時間 |
JSON實例:
{ ????"status":?"0", ????"message":?[ ????????{ ????????????"sessionId":?"7303312313552039761", ????????????"startTime":?"2018-02-26?18:01:03", ????????????"endTime":?"2018-02-26?18:01:40", ????????????"duration":?"37", ????????????"agentId":?"1008", ????????????"createTime":?"2018-02-26?18:01:03" ????????} ????] } { ?????"status":"1", ?????"message":"操作失敗" } { ?????"status":"2", ?????"message":"認證失敗" }