查询商家已订阅知识包知识列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | ListSubscribedPackageKnowledges | 接口功能枚举值 |
| CategoryId | Long | 是 | 289 | 类目id |
| PackageCodes.N | String | 否 | phone | 行业包code |
| RobotCode | String | 否 | ce25a9 | 机器人code |
| OperatorId | String | 否 | 10006 | 操作用户id |
| OperatorName | String | 否 | 张三 | 操作用户名称 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Knowledges | Array of Knowledge | 知识集合 |
|
| KnowledgeId | Long | 100001 | 知识id |
| KnowledgeTitle | String | 你好 | 知识标题 |
| KnowledgeStatus | String | online | "online":在用,"disabled":禁用 |
| KnowledgeDescription | String | 问候 | 知识描述 |
| CreateTime | String | 2018-08-28 04:44:48 | 创建时间 |
| ModifyTime | String | 2018-08-28 04:44:48 | 修改时间 |
| CreateUserId | String | 10006 | 创建用户id |
| ModifyUserId | String | 10006 | 修改用户id |
| SceneKey | String | sk_ddd | 场景code |
| SimilarQuestions | Array of SimilarQuestion | 示例问法、正负例句、正负关键字 |
|
| SimilarQuestionId | Long | 10000000581 | 问法id |
| SimilarQuestionTitle | String | 示例问法 | 示例问法标题 |
| SimilarQuestionType | String | similar | "similar":相似问法,"sample":例句,"keyword":关键字 |
| SimilarQuestionEffectType | String | positive | "positive":正向,"negative":负向 |
| CreateTime | String | 2018-09-13 02:11:23 | 创建时间 |
| ModifyTime | String | 2018-09-13 02:11:23 | 修改时间 |
| CreateUserId | String | 10006 | 创建用户id |
| ModifyUserId | String | 10006 | 修改用户id |
| Solutions | Array of Solution | 答案 |
|
| SolutionId | Long | 1 | 答案id |
| KnowledgeId | Long | 1 | 场景id |
| SolutionType | String | text | 答案类型,"text":文本答案 |
| SolutionSource | String | source | 答案来源 |
| SolutionContent | String | 答案内容 | 答案正文 |
| Conditions | Array of Condition | 答案约束 |
|
| KnowledgeId | Long | 1 | 知识id |
| SolutionId | Long | 1 | 答案id |
| ConditionType | String | EffectiveMode | 生效模式:EffectiveMode |
| ConditionValue | String | assistant | 生效模式:"disable":全部不生效,"auto":全自动,"assistant":智能辅助,"enable":全部生效 |
| ExtraContent | String | 答案扩展信息 | 答案扩展信息 |
| RequestId | String | 5DEB93BE-E7CB-4115-AFBE-F2013948D71B | Id of the request |
| Success | Boolean | true | 是否成功标示 |
| Code | String | 200 | 返回code |
| Message | String | successful | 返回信息 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListSubscribedPackageKnowledges
&CategoryId=289
&PackageCodes=["phone"]
&RobotCode=ce25a9
&OperatorId=10006
&OperatorName=张三
&公共请求参数
正常返回示例
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ListSubscribedPackageKnowledgesResponse>
<Knowledges>
<KnowledgeId>100001</KnowledgeId>
<KnowledgeTitle>你好</KnowledgeTitle>
<KnowledgeStatus>online</KnowledgeStatus>
<KnowledgeDescription>问候</KnowledgeDescription>
<CreateTime>2018-08-28 04:44:48</CreateTime>
<ModifyTime>2018-08-28 04:44:48</ModifyTime>
<CreateUserId>10006</CreateUserId>
<ModifyUserId>10006</ModifyUserId>
<SceneKey>sk_ddd</SceneKey>
<SimilarQuestions>
<SimilarQuestionId>10000000581</SimilarQuestionId>
<SimilarQuestionTitle>示例问法</SimilarQuestionTitle>
<SimilarQuestionType>similar</SimilarQuestionType>
<SimilarQuestionEffectType>positive</SimilarQuestionEffectType>
<CreateTime>2018-09-13 02:11:23</CreateTime>
<ModifyTime>2018-09-13 02:11:23</ModifyTime>
<CreateUserId>10006</CreateUserId>
<ModifyUserId>10006</ModifyUserId>
</SimilarQuestions>
<Solutions>
<SolutionId>1</SolutionId>
<KnowledgeId>1</KnowledgeId>
<SolutionType>text</SolutionType>
<SolutionSource>source</SolutionSource>
<SolutionContent>答案内容</SolutionContent>
<Conditions>
<KnowledgeId>1</KnowledgeId>
<SolutionId>1</SolutionId>
<ConditionType>EffectiveMode</ConditionType>
<ConditionValue>assistant</ConditionValue>
</Conditions>
<ExtraContent>答案扩展信息</ExtraContent>
</Solutions>
</Knowledges>
<RequestId>5DEB93BE-E7CB-4115-AFBE-F2013948D71B</RequestId>
<Success>true</Success>
<Code>200</Code>
<Message>successful</Message>
</ListSubscribedPackageKnowledgesResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Knowledges" : [ {
"KnowledgeId" : 100001,
"KnowledgeTitle" : "你好",
"KnowledgeStatus" : "online",
"KnowledgeDescription" : "问候",
"CreateTime" : "2018-08-28 04:44:48",
"ModifyTime" : "2018-08-28 04:44:48",
"CreateUserId" : "10006",
"ModifyUserId" : "10006",
"SceneKey" : "sk_ddd",
"SimilarQuestions" : [ {
"SimilarQuestionId" : 10000000581,
"SimilarQuestionTitle" : "示例问法",
"SimilarQuestionType" : "similar",
"SimilarQuestionEffectType" : "positive",
"CreateTime" : "2018-09-13 02:11:23",
"ModifyTime" : "2018-09-13 02:11:23",
"CreateUserId" : "10006",
"ModifyUserId" : "10006"
} ],
"Solutions" : [ {
"SolutionId" : 1,
"KnowledgeId" : 1,
"SolutionType" : "text",
"SolutionSource" : "source",
"SolutionContent" : "答案内容",
"Conditions" : [ {
"KnowledgeId" : 1,
"SolutionId" : 1,
"ConditionType" : "EffectiveMode",
"ConditionValue" : "assistant"
} ],
"ExtraContent" : "答案扩展信息"
} ]
} ],
"RequestId" : "5DEB93BE-E7CB-4115-AFBE-F2013948D71B",
"Success" : true,
"Code" : "200",
"Message" : "successful"
}
错误码
| HttpCode | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. | 内部服务出现错误 |
访问错误中心查看更多错误码。