群呼任务列表
请求方式:POST
请求地址:/api.php?r=groupcall/task-list
请求参数:json
{
"token": "b9f43e6f11e111ec906b00163e1260a0"
}
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| token | string | 是 | 认证码 |
返回值:
{
"statusCode": 0,
"message": "success",
"info": {
"list": [
{
"id": "59",
"name": "测试群呼任务",
"status": "0",
"start_time": "08:30:01",
"end_time": "19:30:02"
}
]
}
}
| 参数 | 类型 | 说明 |
|---|---|---|
| statusCode | int | 状态码,0为正常,其他代表错误 |
| message | string | 成功失败提示信息 |
| info | string | 此处为空信息 |
群呼任务详情
请求方式:POST
请求地址:/api.php?r=groupcall/task-info
请求参数:json
{
"token": "b9f43e6f11e111ec906b00163e1260a0",
"data":
{
"id":"59"
}
}
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| token | string | 是 | 认证码 |
返回值:
{
"statusCode": 0,
"message": "success",
"info": {
"info": {
"id": "59",
"name": "测试群呼任务",
"status": "0",
"start_time": "08:30:01",
"end_time": "19:30:02"
}
}
}
| 参数 | 类型 | 说明 |
|---|---|---|
| statusCode | int | 状态码,0为正常,其他代表错误 |
| message | string | 成功失败提示信息 |
| info | string | 此处为空信息 |
新建一个资料批次并绑定到群呼任务中
请求方式:POST
请求地址:/api.php?r=groupcall/batch-add
请求参数:json
{
"token": "b9f43e6f11e111ec906b00163e1260a0",
"data":
{
"id":"59",
"name":"api_create_test"
}
}
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| token | string | 是 | 认证码 |
返回值:
{
"statusCode": 0,
"message": "success",
"info": {
"batch_id": "671"
}
}
| 参数 | 类型 | 说明 |
|---|---|---|
| statusCode | int | 状态码,0为正常,其他代表错误 |
| message | string | 成功失败提示信息 |
| info | string | 此处为空信息 |
群呼绑定的资料的id列表
请求方式:POST
请求地址:/api.php?r=groupcall/task-bound-batch-id-list
请求参数:json
{
"token": "b9f43e6f11e111ec906b00163e1260a0",
"data":
{
"id":"59"
}
}
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| token | string | 是 | 认证码 |
返回值:
{
"statusCode": 0,
"message": "success",
"info": {
"list": [
"659"
]
}
}
| 参数 | 类型 | 说明 |
|---|---|---|
| statusCode | int | 状态码,0为正常,其他代表错误 |
| message | string | 成功失败提示信息 |
| info | string | 此处为空信息 |
启动任务
请求方式:POST
请求地址:/api.php?r=groupcall/task-start
请求参数:json
{
"token": "b9f43e6f11e111ec906b00163e1260a0",
"data":
{
"id":"59"
}
}
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| token | string | 是 | 认证码 |
返回值:
{
"statusCode": 0,
"message": "success",
"info": ""
}
| 参数 | 类型 | 说明 |
|---|---|---|
| statusCode | int | 状态码,0为正常,其他代表错误 |
| message | string | 成功失败提示信息 |
| info | string | 此处为空信息 |
关闭任务
请求方式:POST
请求地址:/api.php?r=groupcall/task-start
请求参数:json
{
"token": "b9f43e6f11e111ec906b00163e1260a0",
"data":
{
"id":"59"
}
}
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| token | string | 是 | 认证码 |
返回值:
{
"statusCode": 0,
"message": "success",
"info": ""
}
| 参数 | 类型 | 说明 |
|---|---|---|
| statusCode | int | 状态码,0为正常,其他代表错误 |
| message | string | 成功失败提示信息 |
| info | string | 此处为空信息 |
批次上传资料呼叫
请求方式:POST
请求地址:/api.php?r=groupcall/upload-data
请求参数:json
{
"token": "b9f43e6f11e111ec906b00163e1260a0",
"data":
{
"id":"59",
"batch_id":"659",
"data_list":
[
{
"name":"customer name",
"phone":"18851498762",
"address":"",
"state":"",
"callback_url":"http://www.baidu.com",
"email":""
}
]
}
}
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| token | string | 是 | 认证码 |
| id | string | 是 | 群呼id |
| batch_id | string | 是 | 资料id |
| state | string | 否 | 自定义参数,注意不要超过60个字节 |
| callback_url | string | 否 | 呼叫完成的回调地址,下面有回调数据的格式 |
返回值:
{
"statusCode": 0,
"message": "success",
"info": {
"successCount": 1,
"duplicateCount": 0,
"failCount": 0
}
}
| 参数 | 类型 | 说明 |
|---|---|---|
| statusCode | int | 状态码,0为正常,其他代表错误 |
| message | string | 成功失败提示信息 |
| info | string | 此处为空信息 |
呼叫记录回调:
{
"call_result":{
"id":"30249186",
"company_id":"5",
"batch_id":"659",
"name":"",
"phone":"18851498762",
"address":"",
"company_name":"",
"customer_type":"0",
"sex":"1",
"email":"",
"comment":null,
"call_out_status":"0",
"call_result":"success",
"groupcall_mark":"1",
"forecast_mark":"0",
"serve_type":"0",
"serve_state":"0",
"update_time":"2022-03-09 09:04:02",
"create_time":"2022-03-09 09:04:02",
"callback_url":null,
"state":null,
"is_push":"0"
}
}
群呼呼叫记录
请求方式:POST
请求地址:/api.php?r=groupcall/record-list
请求参数:json
{
"token": "b9f43e6f11e111ec906b00163e1260a0",
"data":
{
"id":"59",
"type":"1",
"search_date":"2022-03-28",
"call_result":"1",
"page":"1",
"page_size":"10"
}
}
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| token | string | 是 | 认证码 |
| id | string | 是 | 任务id |
| type | string | 是 | 呼叫记录类型1为今日呼叫记录,2:历史呼叫记录 |
| search_date | string | 是 | 呼叫日期 |
| call_result | string | 是 | 接通状态,1:接通,2:未接通 |
| page | string | 是 | 当前分页 |
| page_size | string | 是 | 每页数据条数 |
返回值:
{
"statusCode": 0,
"message": "获取成功",
"info": {
"page": 1,
"page_size": 10,
"total_page": 1,
"total_count": "3",
"info": [
{
"name": "customer name",
"path": "recordings/2022-03-28/20220328112844_18851498762_18851498762.wav",
"address": "",
"staff_id": "0",
"update_time": "2022-03-28 11:28:39",
"call_result": 1,
"batch_name": "test",
"uniqueid": "9_610029311_groupcall_59_15bc13c2f894f134cea5a47ce1b34fa9_30251195_5_33"
},
{
"name": "customer name",
"path": "recordings/2022-03-28/20220328112712_18851498762_18851498762.wav",
"address": "",
"staff_id": "0",
"update_time": "2022-03-28 11:27:04",
"call_result": 1,
"batch_name": "test",
"uniqueid": "9_610029311_groupcall_59_cc347eead13ddaa703c8b493ee697c90_30251193_5_33"
},
{
"name": "customer name",
"path": "recordings/2022-03-28/20220328111832_18851498762_18851498762.wav",
"address": "",
"staff_id": "0",
"update_time": "2022-03-28 11:18:25",
"call_result": 1,
"batch_name": "test",
"uniqueid": "9_610029311_groupcall_59_c03c0c9ec904fa219066939b8b690ce1_30251191_5_33"
}
]
}
}
| 参数 | 类型 | 说明 |
|---|---|---|
| statusCode | int | 状态码,0为正常,其他代表错误 |
| message | string | 成功失败提示信息 |
| info | string | 此处为空信息 |