文档中心 > API类目 > 小程序API

yunos.miniapp.doc.type.get (获取文档类型分类)

IDE获取文档的分类,之后可以根据分类加载文档导航列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
alipay_context String 必须 { "masterId": "1", "havanaNick": "1", "loginId": "1", "havanaId": "1"} 支付宝请求上下文

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • results
  • DocType []
  • [ { "categoryType": "api", "name": "API", "class": "com.alios.miniapp.domain.DocType" }, { "categoryType": "component", "name": "组件", "class": "com.alios.miniapp.domain.DocType" }, { "categoryType": "scene", "name": "场景", "class": "com.alios.miniapp.domain.DocType" } ]
  • 文档类型集合
  • └ category_type
  • String
  • api
  • 类型码
  • └ name
  • String
  • API
  • 类型名称
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ result_code
  • String
  • 200
  • 返回码
  • └ result_msg
  • String
  • 成功
  • 返回信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosMiniappDocTypeGetRequest req = new YunosMiniappDocTypeGetRequest();
req.setAlipayContext("{ \"masterId\": \"1\", \"havanaNick\": \"1\", \"loginId\": \"1\", \"havanaId\": \"1\"}");
YunosMiniappDocTypeGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_miniapp_doc_type_get_response>
    <result>
        <results>
            <doc_type>
                <category_type>api</category_type>
                <name>API</name>
            </doc_type>
        </results>
        <success>false</success>
        <result_code>200</result_code>
        <result_msg>成功</result_msg>
    </result>
</yunos_miniapp_doc_type_get_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

返回
顶部