呼叫中心数据接口
获取咨询分类
获取企业管理后台配置的呼叫会话咨询分类,以最多五级树状结构返回;type 当前固定传 1。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| appKey | string | 是 | 应用 AppKey | |
| time | int64 | 是 | 请求时间戳,单位秒 | |
| checksum | string | 是 | 请求签名校验和 | |
| checksumAlgorithm | int32 | 否 | 签名算法:0=SHA1,1=SHA256 |
请求体
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| type | int32 | 是 | 分类类型;当前仅支持会话咨询分类 | 1 |
返回参数
| 名称 | 类型 | 描述 | 示例值 |
|---|---|---|---|
| result | object[] | 咨询分类树,最多五级 | |
| └cloud | boolean | 是否为云端预置分类 | false |
| └children | object[] | 子分类列表 | |
| └cloud | boolean | 是否为云端预置分类 | false |
| └children | object[] | 子分类列表 | |
| └name | string | 分类名称 | 售后问题 |
| └rank | int32 | 同级分类排序值 | 1 |
| └id | int64 | 分类 ID | 30001 |
| └name | string | 分类名称 | 售后问题 |
| └rank | int32 | 同级分类排序值 | 1 |
| └id | int64 | 分类 ID | 30001 |
| total | int32 | 结果总数,当前成功响应固定返回 0 | 0 |
| code | int32 | 业务状态码,200 表示业务成功 | 200 |
| message | string | 响应消息 | success |
错误码
| 状态码 | 描述 |
|---|---|
| 12001 | 查询过于频繁 |
| 14001 | AppKey 不存在 |
| 14002 | checksum 校验失败 |
| 14003 | 请求时间戳与服务器时间误差超过 10 分钟 |
| 14004 | 请求参数或内容不合法 |
| 14200 | 不支持的分类类型 |
| 14500 | 系统异常或处理超时 |
postEndpoint
/openapi/ipcc/category/listcurl -X POST "https://qiyukf.com/openapi/ipcc/category/list?appKey=string&time=0&checksum=string" \ -H "Content-Type: application/json" \ -d '{ "type": 1 }'{
"result": [
{
"cloud": false,
"children": [
{
"cloud": false,
"children": [],
"name": "售后问题",
"rank": 1,
"id": 30001
}
],
"name": "售后问题",
"rank": 1,
"id": 30001
}
],
"total": 0,
"code": 200,
"message": "success"
}{
"code": 12001,
"message": "查询过于频繁"
}{
"code": 14001,
"message": "AppKey 不存在"
}{
"code": 14002,
"message": "checksum 校验失败"
}{
"code": 14003,
"message": "请求时间戳与服务器时间误差超过 10 分钟"
}{
"code": 14004,
"message": "请求参数或内容不合法"
}{
"code": 14200,
"message": "不支持的分类类型"
}{
"code": 14500,
"message": "系统异常或处理超时"
}这篇文档有帮助吗?