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

yunos.ebanma.miniapp.disapi.getbyuuid (斑马小程序分发查询V2)

斑马小程序分发查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
dist_request DistributionRequest 可选 分发请求
  • └ uuid
  • String
  • 可选
  • 123
  • uuid
  • └ project_id
  • String
  • 可选
  • banma
  • 项目ID
  • └ device_id
  • String
  • 可选
  • sdf
  • deviceId
  • └ scene_id
  • String
  • 可选
  • 150
  • 场景ID
  • └ app_id
  • String
  • 可选
  • 2021000197665187
  • 小程序ID
  • └ trace_id
  • String
  • 可选
  • test
  • 链路跟踪ID

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • └ msg
  • String
  • success
  • 相应信息
  • └ code
  • Number
  • 0
  • 响应码
  • └ success
  • Boolean
  • true
  • 是否成功
  • value
  • Value
  • 返回内容
  • └ trace_id
  • String
  • 1234
  • 链路跟踪ID
  • └ app_url_options
  • String
  • appid=2021000197665187&frameworkSceneId=
  • 启动URL参数
  • └ app_id
  • String
  • 2021000197665187
  • 小程序ID
  • └ permit
  • Boolean
  • true
  • 是否可分发
  • └ container_options
  • String
  • demo
  • 容器启动参数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosEbanmaMiniappDisapiGetbyuuidRequest req = new YunosEbanmaMiniappDisapiGetbyuuidRequest();
YunosEbanmaMiniappDisapiGetbyuuidRequest.DistributionRequest obj1 = new YunosEbanmaMiniappDisapiGetbyuuidRequest.DistributionRequest();
obj1.setUuid("123");
obj1.setProjectId("banma");
obj1.setDeviceId("sdf");
obj1.setSceneId("150");
obj1.setAppId("2021000197665187");
obj1.setTraceId("test");
req.setDistRequest(obj1);
YunosEbanmaMiniappDisapiGetbyuuidResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_ebanma_miniapp_disapi_getbyuuid_response>
    <result>
        <msg>success</msg>
        <code>0</code>
        <success>true</success>
        <value>
            <trace_id>1234</trace_id>
            <app_url_options>appid=2021000197665187&amp;frameworkSceneId=</app_url_options>
            <app_id>2021000197665187</app_id>
            <permit>true</permit>
            <container_options>demo</container_options>
        </value>
    </result>
</yunos_ebanma_miniapp_disapi_getbyuuid_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

返回
顶部