FaqTemplate - 查看问答模版列表
更新时间:2025-01-08
API访问域名
| 请求方式 | GET |
|---|---|
| base url | https://keyue.cloud.baidu.com |
| 后缀接口 | /open/v1/api/v2/faq/template |
| Authentication | token为API Key |
说明
无
请求参数
Header参数
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| Content-Type | string | 是 | 内容类型 | 固定值:application/json |
| token | string | 是 | API KEY | 集成-API-API Key处获取。 详细获取方式参考:准备工作 |
| uid | string | 是 | 用户ID | 鼠标移动至页面右上角账户头像即可获取。 详细获取方式参考:准备工作 |
| username | string | 是 | 用户名 | 鼠标移动至页面右上角账户头像即可获取。 详细获取方式参考:准备工作 |
Body参数
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| pn | integer | 是 | 页码 | 1 |
| ps | integer | 是 | 每页数量 | 5 |
| keyword | string | 否 | 关键字 | "" |
| faqId | string | 是 | faqId |
响应参数
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| time | integer | 是 | 时间 | 1717053723895 |
| data | object | 是 | 数据 | 数据对象,详见data 子数据 |
| code | integer | 是 | 状态码 | 200 |
| msg | string | 是 | 状态信息 | OK |
data 子数据
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| all | integer | 是 | 全部 | 2 |
| total | integer | 是 | 总数 | 2 |
| pn | integer | 是 | 页码 | 1 |
| ps | integer | 是 | 每页数量 | 5 |
| list | array | 是 | 列表 | 列表,详见list子数据 |
list子数据
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| id | string | 是 | ID | 14fefaeb-ab24-43ac-8741-daa019446169 |
| faqId | string | 是 | FAQ ID | 6f4b1206-bdf6-42e0-94a8-bb57d2a5a4e6 |
| template | string | 是 | 模板 | [W:0-5] |
| created | string | 是 | 创建时间 | 2024-05-30 15:09:16 |
| update | string | 是 | 更新时间 | 2024-05-30 15:09:16 |
| version | integer | 是 | 版本 | 0 |
| hasActiveCopy | boolean | 否 | 有活动副本 | false |
| templateList | array | 是 | 模板列表 | 模板列表,详见templateList子数据 |
templateList子数据
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| text | string | 是 | 文本 | [W:0-5] |
| id | null | 否 | ID | null |
| name | null | 否 | 名称 | null |
| nameZh | null | 否 | 中文名 | null |
| type | null | 否 | 类型 | null |
请求示例
Bash
1curl --location 'https://keyue.cloud.baidu.com/open/v1/api/v2/faq/template?pn=1&ps=5&keyword=&faqId=6f4b1206-bdf6-42e0-94a8-bb57d2a5a4e6' \
2--header 'token: a9dcb88a-4fc0-4ae0-a103-3578bdb90e62' \
3--header 'Content-Type: application/json' \
4--header 'uid: cf7d9692703d45d1b5517a30ab3efa53' \
5--header 'username: pnstest5'
