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

taobao.miniapp.gray.process.query (查询小程序灰度进程)

查询小程序灰度进程

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
mini_app_id String 必须 34343434 小程序id
origin String 必须 alipayPlatform 业务来源,与小程序平台约定的业务标识
client String 必须 taobao 投放端
version String 必须 0.0.1 版本号
mini_app_domain String 必须 taobaoDomain 小程序域:taobaoDomain-淘宝域;alipayDomain-支付宝域

响应参数

名称 类型 示例值 描述
taobao_gray_process TaobaoGrayProcess 淘宝域灰度返回值 淘宝域灰度返回值
  • └ gmt_end
  • Date
  • 2020-09-08 12:00:23
  • 灰度结束时间
  • └ gmt_start
  • Date
  • 2020-09-08 12:00:23
  • 灰度开始时间
  • └ gmt_modified
  • Date
  • 2020-09-08 12:00:23
  • 创建时间
  • └ gmt_create
  • Date
  • 2020-09-08 12:00:23
  • 更新时间
  • └ white_list
  • String []
  • ["NICK1","NICK2"]
  • 灰度白名单-淘宝账号nick
  • └ percentage
  • Number
  • 32
  • 灰度比例
  • └ status
  • byte
  • 0
  • 状态
alipay_gray_process AlipayGrayProcess 支付宝域灰度返回值 支付宝域灰度返回值
  • └ gray_strategy
  • String
  • alibaba_gray
  • 灰度策略

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MiniappGrayProcessQueryRequest req = new MiniappGrayProcessQueryRequest();
req.setMiniAppId("34343434");
req.setOrigin("alipayPlatform");
req.setClient("taobao");
req.setVersion("0.0.1");
req.setMiniAppDomain("taobaoDomain");
MiniappGrayProcessQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<miniapp_gray_process_query_response>
    <taobao_gray_process>
        <gmt_end>2020-09-08 12:00:23</gmt_end>
        <gmt_start>2020-09-08 12:00:23</gmt_start>
        <gmt_modified>2020-09-08 12:00:23</gmt_modified>
        <gmt_create>2020-09-08 12:00:23</gmt_create>
        <white_list>
            <string>[&quot;NICK1&quot;</string>
            <string>&quot;NICK2&quot;]</string>
        </white_list>
        <percentage>32</percentage>
        <status>0</status>
    </taobao_gray_process>
    <alipay_gray_process>
        <gray_strategy>alibaba_gray</gray_strategy>
    </alipay_gray_process>
</miniapp_gray_process_query_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

返回
顶部