在线系统其他接口
查询在线会话分类列表
返回企业的在线会话分类列表。请求体 type 必填,目前仅支持 type=1(在线会话分类);其他类型返回 14200。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| appKey | string | 是 | 应用 AppKey | |
| time | int64 | 是 | 请求时间戳(秒) | |
| checksum | string | 是 | 请求签名校验和 | |
| checksumAlgorithm | int32 | 否 | 签名算法:0 - 默认(SHA1),1 - SHA256 |
请求体
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| type | int32 | 是 | 分类类型:1-在线会话分类,目前仅支持 1 | 1 |
返回参数
| 名称 | 类型 | 描述 | 示例值 |
|---|---|---|---|
| code | int32 | 状态码,200 表示成功 | 200 |
| message | object[] | 分类列表 | [{"id":1,"name":"售前咨询"}] |
| └id | int64 | 分类 ID | 1 |
| └name | string | 分类名称 | 售前咨询 |
| └children | object[] | 子分类列表 | |
| └id | int64 | 分类 ID | 1 |
| └name | string | 分类名称 | 售前咨询 |
| └children | object[] | 子分类列表 |
错误码
| 状态码 | 描述 |
|---|---|
| 14001 | AppKey 不存在 |
| 14002 | checksum 校验失败 |
| 14003 | 请求时间戳与服务器时间误差超过 10 分钟 |
| 14004 | type 缺失;请求体 JSON 格式错误 |
| 14200 | 不支持的分类型(非 1) |
| 14500 | 服务内部异常 |
postEndpoint
/openapi/online/session/category/listcurl -X POST "https://qiyukf.com/openapi/online/session/category/list?appKey=string&time=0&checksum=string" \ -H "Content-Type: application/json" \ -d '{ "type": 1 }'{
"code": 200,
"message": [
{
"id": 1,
"name": "售前咨询"
}
]
}{
"code": 14001,
"message": "AppKey 不存在"
}{
"code": 14002,
"message": "checksum 校验失败"
}{
"code": 14003,
"message": "请求时间戳与服务器时间误差超过 10 分钟"
}{
"code": 14004,
"message": "type 缺失;请求体 JSON 格式错误"
}{
"code": 14200,
"message": "不支持的分类型(非 1)"
}{
"code": 14500,
"message": "服务内部异常"
}这篇文档有帮助吗?