知识云-查询单个知识详情。通过租户id、问题id查询问题详情
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| question_id | Number | 必须 | 1 | 问题id | |
| filter | KcQaFilter | 可选 | 过滤条件 | ||
|
|||||
| auth | TenancyAuth | 必须 | 鉴权 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | Result | 返回结果 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaKclubKcQaGetRequest req = new AlibabaKclubKcQaGetRequest();
req.setQuestionId(1L);
AlibabaKclubKcQaGetRequest.KcQaFilter obj1 = new AlibabaKclubKcQaGetRequest.KcQaFilter();
obj1.setNeedChildKnowledge(false);
obj1.setViews("1");
obj1.setStatuses("1");
req.setFilter(obj1);
AlibabaKclubKcQaGetRequest.TenancyAuth obj2 = new AlibabaKclubKcQaGetRequest.TenancyAuth();
obj2.setSecretKey("d62ecfe5f779eac101832ee3bb491e4c");
obj2.setName("test");
req.setAuth(obj2);
AlibabaKclubKcQaGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<alibaba_kclub_kc_qa_get_response>
<result>
<message></message>
<data>
<child_qas>
<kc_qa_read>
<solutions>
<kc_qa_solution>
<summary></summary>
<type></type>
<extra_content></extra_content>
<content_view></content_view>
<content_type></content_type>
<content></content>
<question_id></question_id>
<gmt_modified></gmt_modified>
<gmt_create></gmt_create>
<id></id>
<plain_text></plain_text>
</kc_qa_solution>
</solutions>
<context></context>
<question_type></question_type>
<entity_code></entity_code>
<parent_cats>
<number></number>
</parent_cats>
<cat_path></cat_path>
<cat_id></cat_id>
<tenant_id></tenant_id>
<status></status>
<title></title>
<gmt_modified></gmt_modified>
<gmt_create></gmt_create>
<id></id>
</kc_qa_read>
</child_qas>
<solutions>
<kc_qa_solution>
<plain_text></plain_text>
<summary></summary>
<type></type>
<extra_content></extra_content>
<content_view></content_view>
<content_type></content_type>
<content></content>
<question_id></question_id>
<gmt_modified></gmt_modified>
<gmt_create></gmt_create>
<id></id>
</kc_qa_solution>
</solutions>
<context></context>
<question_type></question_type>
<entity_code></entity_code>
<parent_cats>
<number></number>
</parent_cats>
<cat_path></cat_path>
<cat_id></cat_id>
<tenant_id></tenant_id>
<status></status>
<title></title>
<gmt_modified></gmt_modified>
<gmt_create></gmt_create>
<id></id>
</data>
<code></code>
<success>false</success>
</result>
</alibaba_kclub_kc_qa_get_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|