taobao.pamirsathena.solution.getbyrelationforstf (获取支持千牛富文本的数字知识列表)

获取支持千牛富文本的数字知识列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
knowledge_ids String [] 必须 1
  • 最大列表长度:10
  • 勾选的数字问题id列表

    响应参数

    名称 类型 示例值 描述
    error_msg String 非法参数 错误信息
    ret_list NumberSolutionStfDto [] 富文本数字知识
    • └ id
    • Number
    • 123
    • 数字知识ID
    • └ user_id
    • Number
    • 123
    • 主账号用户ID
    • └ question_title
    • String
    • 1
    • 数字知识问题标题
    • └ question_desc
    • String
    • demo
    • 数字知识问题描述
    • └ solution
    • String
    • demo
    • 数字知识解决方案
    • └ solution_stf
    • String
    • demo
    • 数字知识富文本解决方案
    • └ relation
    • Boolean
    • false
    • 是否勾选
    status Boolean true 是否调用成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    PamirsathenaSolutionGetbyrelationforstfRequest req = new PamirsathenaSolutionGetbyrelationforstfRequest();
    req.setKnowledgeIds("1");
    PamirsathenaSolutionGetbyrelationforstfResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <pamirsathena_solution_getbyrelationforstf_response>
        <error_msg>非法参数</error_msg>
        <ret_list>
            <number_solution_stf_dto>
                <id>123</id>
                <user_id>123</user_id>
                <question_title>1</question_title>
                <question_desc>demo</question_desc>
                <solution>demo</solution>
                <solution_stf>demo</solution_stf>
                <relation>false</relation>
            </number_solution_stf_dto>
        </ret_list>
        <status>true</status>
    </pamirsathena_solution_getbyrelationforstf_response>

    异常示例

    • XML示例
    • JSON示例
    <error_response>
        <code>50</code>
        <msg>Remote service error</msg>
        <sub_code>isv.invalid-parameter</sub_code>
        <sub_msg>非法参数</sub_msg>
    </error_response>

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部