1.1. 获取任务下指定号码的详情接口
1.2. 请求地址
- GET /v1/autoCallTasks/number/{numberId}
1.3. 请求参数
|
参数 |
类型 |
是否可空 |
描述 |
|
timestamp |
Long |
false |
时间戳(例:当前秒数,1533092860) |
|
sign |
String |
false |
签名:身份认证签名(DigestUtils.sha1Hex(email&secretKey×tamp)) |
|
email |
String |
false |
邮箱 |
|
numberId |
int |
false |
号码ID |
1.4. 响应参数
|
参数 |
类型 |
是否可空 |
描述 |
|
code |
String |
false |
返回码 |
|
message |
String |
false |
返回消息 |
|
visible |
boolean |
false |
是否可见(暂不使用) |
|
data |
Object |
true |
结果 |
|
data.id |
int |
false |
号码id |
|
data.outboundTaskId |
int |
false |
任务ID |
|
data.mobile |
String |
false |
号码 |
|
data.name |
String |
true |
姓名 |
|
data.variates |
Array |
true |
自定义变量(格式:[{"key":"天气","type":"string","value":"北京"}]) |
|
data.callResult |
int |
false |
最近外呼结果(1已接通, 2未接通, 7未拨打, 10执行中) |
|
data.execCount |
int |
false |
呼叫次数 |
|
data.callSuccessCount |
int |
false |
接听次数 |
|
data.hangupReason |
int |
true |
未接通原因 |
|
data.lastCallTime |
date |
true |
最近通话时间(yyyy-MM-dd HH:mm:ss) |
|
data.duration |
int |
true |
最近通话时长 |
|
data.talkTurn |
int |
true |
对话轮次 |
|
data.focus |
String |
true |
关注点 |
|
data.classification |
int |
true |
意向级别 |
|
data.remark |
String |
true |
备注 |
|
data.callLogRecordFoundResponseList |
Array |
true |
录音数组 |
|
data.callLogRecordFoundResponseList[].recordUrl |
String |
true |
录音地址 |
|
data.callLogNoteFoundResponseList |
Array |
true |
对话文字数组 |
|
data.callLogNoteFoundResponseList[].id |
int |
true |
对话id |
|
data.callLogNoteFoundResponseList[].role |
int |
true |
发声侧(1AI,2客户) |
|
data.callLogNoteFoundResponseList[].content |
String |
true |
文字内容 |
|
data.customFieldTemplateId |
int |
true |
辅助自定义模板 |
|
data.dropSide |
int |
true |
挂断方(1客户,2座席,3系统,4ivr) |
|
data.transToAgent |
int |
true |
是否转人工(0否,1是) |
1.5. 请求示例
$ curl 'http://localhost:8080/v1/autoCallTasks/number/1?email=1@test.cn×tamp=1542187160&sign=123' -i -X GET -H 'Content-Type: application/json'
1.6. 响应示例
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 522
{
"code" : 200,
"message" : "OK",
"visible" : false,
"data": {
"id": 1,
"outboundTaskId": 1,
"mobile": "13935107603",
"name": "zhoukai",
"variates": null,
"callResult": 7,
"execCount": 0,
"callSuccessCount": 0,
"hangupReason": null,
"lastCallTime": null,
"duration": 0,
"talkTurn": 0,
"focus": null,
"classification": null,
"remark": "",
"dropSide": 1,
"transToAgent": 0,
"callLogRecordFoundResponseList": [
{
"recordUrl": "http://ccrecords.alioss.udesk.cn/linapp/cc_recordings/20180702175049_60f46321-3972-4fe3-4726-c9d3b92368ac_2530d365-65d1-46e6-a63f-cf0c1fa00f5b.mp3?OSSAccessKeyId=bPexlr6MCcadDhfu&Expires=1562061098&Signature=BBlQnDXiCOC1GADseE%2Bp39dZraU%3D"
}
],
"callLogNoteFoundResponseList": [
{
"id": 1,
"role": 1,
"content": "测试1"
},
{
"id": 2,
"role": 2,
"content": "测试2"
}
]
}
}