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

yunos.ebanma.miniapp.disapi.disoption.get (斑马小程序可分发情况查询)

斑马小程序可分发情况查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
scene_id String 必须 1 场景ID,由产品同学定义
device_id String 必须 dfsersadg 设备ID
app_id String 必须 2021000197665187 小程序ID
trace_id String 必须 wetewrerhgfsgjdhk 链路traceID

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • └ msg
  • String
  • success
  • 返回信息
  • └ code
  • Number
  • 0
  • 返回码
  • └ success
  • Boolean
  • true
  • 是否成功
  • value
  • Value
  • 返回值
  • └ trace_id
  • String
  • adtreasgdfbstyrdfgsnj
  • 链路traceID
  • └ 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);
YunosEbanmaMiniappDisapiDisoptionGetRequest req = new YunosEbanmaMiniappDisapiDisoptionGetRequest();
req.setSceneId("1");
req.setDeviceId("dfsersadg");
req.setAppId("2021000197665187");
req.setTraceId("wetewrerhgfsgjdhk");
YunosEbanmaMiniappDisapiDisoptionGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_ebanma_miniapp_disapi_disoption_get_response>
    <result>
        <msg>success</msg>
        <code>0</code>
        <success>true</success>
        <value>
            <trace_id>adtreasgdfbstyrdfgsnj</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_disoption_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

返回
顶部