查询外呼活动列表
场景描述
调用该接口按照指定条件查询外呼活动。
接口方法
该接口仅支持GET方法。
接口URL
https://ip:port/rest/isales/v1/openapi/campaigns/{vdnId}?name={name}&status={status}&deviceType={deviceType}&beginTime={beginTime}&endTime={endTime}&curPage={curPage}&rowsPerPage={rowsPerPage}
其中,ip为CC-iSales服务器地址,port为CC-iSales服务器的HTTPS端口号。
序号 | 参数名 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
1 | vdnId | int | True | 虚拟呼叫中心ID。 取值的类型为整数,取值范围为1~9999。 |
2 | name | String | False | 外呼活动的名称。 长度为0~30,默认值为空。 |
3 | status | int | True | 外呼活动的状态。 取值范围: 2:已开始 3:暂停 4:已完成 0:默认查询全部状态 |
4 | deviceType | int | True | 外呼设备类型。 取值范围:
|
5 | beginTime | String | False | 外呼活动的最小开始时间,格式为yyyy-MM-dd HH:mm:ss。 |
6 | endTime | String | False | 外呼活动的最大结束时间,格式为yyyy-MM-dd HH:mm:ss。 |
7 | curPage | int | True | 当前第几页。 默认值为1,输入值小于1时自动修正为1。 |
8 | rowsPerPage | int | True | 每页记录数。 该值不输入的时候,默认查询10条,且最大值为100。 |
9 | ccId | int | False |
|
请求说明
序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
1 | Content-Type | String | True | 固定填 application/json; charset=UTF-8。 |
2 | Authorization | String | True | 生成方式参见C2 监控/系统外呼/话单/知识库类接口鉴权方式。 |
3 | locale | String | False | i18n(internationalization,国际语言代码),如zh_CN表示中文、en_US表示英文等,默认zh_CN。 |
无请求消息体。
响应说明
序号 | 参数名 | 参数类型 | 说明 |
|---|---|---|---|
1 | resultCode | String | 原因码。0200000表示成功,其他表示失败。 具体见表5 |
2 | resultDesc | String | 描述。 |
3 | returnCode | String | 原因码。0200000表示成功,其他表示失败。 具体见表5 |
4 | returnDesc | String | 描述。 |
5 | curPage | int | 当前页。 |
6 | totalSize | int | 总记录数。 |
7 | rowsPerPage | int | 每页记录数。 |
8 | curSkillQueueCount | int | 当前技能队列外呼活动总数。 |
9 | curIvrCount | int | 当前IVR外呼活动总数。 |
10 | data | List | 查询成功后,返回外呼活动信息的对象(Campaign)。 参见表4 |
序号 | 参数名 | 参数类型 | 说明 |
|---|---|---|---|
10.1 | id | int | 外呼活动id。 |
10.2 | name | String | 外呼活动的名称。 |
10.3 | status | int | 外呼活动的状态。 取值范围: 2:已开始 3:暂停 4:已完成 |
10.4 | strBeginTime | String | 外呼活动开始时间,格式为yyyy-MM-dd HH:mm:ss。 |
10.5 | strEndTime | String | 外呼活动结束时间,格式为yyyy-MM-dd HH:mm:ss。 |
10.6 | deviceType | int | 外呼设备类型。 取值范围:
|
10.7 | callerNo | String | 主叫号码。 呼通客户后,客户的电话终端上显示的号码。 |
触发事件
无
错误结果码
报文样例
- 该接口的请求消息体举例如下:
- 该接口的响应消息体举例如下:
{ "resultCode": "0200000", "resultDesc": "", "returnCode": "0200000", "returnDesc": "", "curPage": 1, "totalSize": 3, "rowsPerPage": 10, "data": [ { "id": 3, "name": "666", "status": 1, "strBeginTime": "2018-11-30", "strEndTime": "2018-11-30", "deviceType": 2, "callerNo": "10080" }, { "id": 4, "name": "666333696", "status": 1, "strBeginTime": "2018-11-30", "strEndTime": "2018-11-30", "deviceType": 2, "callerNo": "10080" }, { "id": 2, "name": "SAAS_JST", "status": 3, "strBeginTime": "2018-11-29", "strEndTime": "2018-12-08", "deviceType": 2, "callerNo": "10080" } ], "curSkillQueueCount": 3, "curIvrCount": 0 }

