
# 查询外呼活动ACD检测列表
#### 场景描述
此接口可以根据外呼活动id、外呼活动名称查询每个外呼活动的ACD检测设置。
#### 使用说明
无。
#### 接口方法
该接口支持POST方法。
#### 接口URL
https://ip:port/rest/isales/v1/openapi/campaigns/{vdnId}/acd/list
其中，ip为CC-iSales服务器地址，port为CC-iSales服务器的HTTPS端口号。
表1URL中携带的参数说明 
| 序号 | 参数名   | 参数类型 | 是否必选 | 说明                                                                                                           |
|:---|:---|:---|:---|:---|
| 1  | vdnId | int  | True | 虚拟呼叫中心ID。 取值的类型为整数，取值范围为1～9999。 |
   
#### 请求说明
表2请求消息体参数说明 
| 序号 | 参数名        | 参数类型   | 是否必选  | 说明                                                                                                                                                                                                                                      |
|:---|:---|:---|:---|:---|
| 1  | taskName   | String | False | 外呼活动名称，不支持模糊查询                                                                                                                                                                                                                          |
| 2  | taskId     | int    | False | 外呼活动id，不支持模糊查询                                                                                                                                                                                                                          |
| 3  | detectMode | String | False | 0：未开启检测 1：接通前检测 2：接通前后都检测                                                      |
| 4  | offset     | int    | True  | offset用于确定查询的起始页。 offset取值公式为：offset=limit\*(page-1)，取值范围：\>=0。 page为需要查询的起始页。 |
| 5  | limit      | int    | True  | 表示每页的查询数量。取值范围：1～100。                                                                                                                                                                                                                   |
   
#### 响应说明
表3消息体参数说明 
| 序号 | 参数名            | 参数类型   | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|:---|:---|:---|:---|
| 1  | resultCode     | String | 原因码。0200000表示成功，其他表示失败。 具体见下[表5]                                                                                                                                                                                                                                                                                                                                                                                                                           |
| 2  | resultDesc     | String | 描述。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 3  | returnCode     | String | 原因码。0200000表示成功，其他表示失败。 具体见[表5 错误原因码说明]。                                                                                                                                                                                                                                                                                                                                                                                                                     |
| 4  | returnDesc     | String | 描述。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| 5  | detectMode     | String | 检测开启方式。 取值范围： - 0：所有活动统一模式  - 1：按照活动维度开启，值为1时可以设置每一个活动是否开启/关闭检测   |
| 6  | detectModeShow | String | 检测开启方式。 取值范围： - 所有活动统一模式  - 按照活动维度开启                            |
| 7  | taskList       | Array  | 活动列表，具体见[表4 taskList参数说明]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| 8  | totalCount     | int    | 总数量                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
   
 表4taskList参数说明 
| 序号 | 参数名                      | 参数类型   | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|:---|:---|:---|:---|
| 1  | taskId                   | String | 外呼活动id                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| 2  | taskName                 | String | 外呼活动名称                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| 3  | taskType                 | String | 活动类型                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| 4  | taskStatus               | String | 活动状态                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| 5  | detectResProModeShow     | String | - 释放  - 接通                                                                                                                                                                            |
| 6  | detectResProMode         | int    | 非人工应答处理方式 0：释放 1：接通                                                                                                                                                                                                                                                                                                                                                                                                       |
| 7  | detectTimeOutProModeShow | String | - 释放  - 接通                                                                                                                                                                     |
| 8  | detectTimeOutProMode     | int    | 等待超时处理方式 0：释放 1：接通                                                                                                                                                                                                                                                                                                                                                                                                         |
| 9  | toneDetectShow           | String | - 不开启  - 接通前检测  - 接通前后都检测   |
| 10 | toneDetect               | String | ACD检测方式 0：不开启 1：接通前检测 2：接通前后都检测                                                                                                                                                                                                                                                                                                                |
| 11 | waitDetectResTime        | int    | 等待检测时长，单位秒                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
   
#### 错误结果码
 表5错误原因码说明 
| 序号 | 错误码      | 说明                       |
|:---|:---|:---|
| 1  | 0200001  | 参数异常，异常详情在resultDesc中描述。 |
| 2  | 02000001 | 参数值为空                    |
| 3  | 02000002 | 参数包含非法字符                 |
| 4  | 02000007 | 参数值大小不正确                 |
| 5  | 02000013 | 未启用任务级ACD检测              |
   
#### 报文样例
- 该接口的响应消息体举例如下：
  ```
  {
      "returnCode": "0200000",
      "detectMode": "1",
      "detectModeShow": "按照活动维度开启",
      "resultCode": "0200000",
      "taskList": [
          {
              "taskId": "1755058248",
              "taskName": "预测外呼gu-0224",
              "taskType": "2",
              "taskStatus": "1",
              "detectResProModeShow": "接通",
              "detectResProMode": 1,
              "detectTimeOutProModeShow": "接通",
              "detectTimeOutProMode": 1,
              "toneDetectShow": "接通前后都检测",
              "toneDetect": "2",
              "waitDetectResTime": 20
          },
          {
              "taskId": "1581579244",
              "taskName": "test0215round",
              "taskType": "2",
              "taskStatus": "2",
              "detectResProModeShow": "接通",
              "detectResProMode": 1,
              "detectTimeOutProModeShow": "接通",
              "detectTimeOutProMode": 1,
              "toneDetectShow": "接通前后都检测",
              "toneDetect": "2",
              "waitDetectResTime": 1
          },
          {
              "taskId": "1067177815",
              "taskName": "yuzhan0214",
              "taskType": "2",
              "taskStatus": "1",
              "detectResProModeShow": "接通",
              "detectResProMode": 1,
              "detectTimeOutProModeShow": "接通",
              "detectTimeOutProMode": 1,
              "toneDetectShow": "接通前后都检测",
              "toneDetect": "2",
              "waitDetectResTime": 8
          },
          {
              "taskId": "1306407658",
              "taskName": "yuce0211",
              "taskType": "2",
              "taskStatus": "1",
              "detectResProModeShow": "接通",
              "detectResProMode": 1,
              "detectTimeOutProModeShow": "接通",
              "detectTimeOutProMode": 1,
              "toneDetectShow": "接通前后都检测",
              "toneDetect": "2",
              "waitDetectResTime": 1
          },
          {
              "taskId": "1994251635",
              "taskName": "yuceapiTask0210Two",
              "taskType": "2",
              "taskStatus": "4",
              "detectResProModeShow": "接通",
              "detectResProMode": 1,
              "detectTimeOutProModeShow": "接通",
              "detectTimeOutProMode": 1,
              "toneDetectShow": "接通前后都检测",
              "toneDetect": "2",
              "waitDetectResTime": 12
          },
          {
              "taskId": "1504171899",
              "taskName": "yuce0209",
              "taskType": "2",
              "taskStatus": "4",
              "detectResProModeShow": "接通",
              "detectResProMode": 1,
              "detectTimeOutProModeShow": "释放",
              "detectTimeOutProMode": 0,
              "toneDetectShow": "接通前后都检测",
              "toneDetect": "2",
              "waitDetectResTime": 3
          }
      ],
      "resultDesc": "query success",
      "totalCount": 6,
      "returnDesc": "query success"
  }
  ```
  
 
