Skip to content

Latest commit

 

History

History
80 lines (56 loc) · 3.28 KB

AlipayOpenMiniVersionListApi.md

File metadata and controls

80 lines (56 loc) · 3.28 KB

Alipay\OpenAPISDK\AlipayOpenMiniVersionListApi

All URIs are relative to https://openapi.alipay.com.

Method HTTP request Description
query() GET /v3/alipay/open/mini/version/list/query 小程序版本列表查询

query()

query($bundleId, $versionStatus): \Alipay\OpenAPISDK\Model\AlipayOpenMiniVersionListQueryResponseModel

小程序版本列表查询

根据状态、端分页查询小程序版本基础信息列表,查询结果根据版本号大小降序排列,即0.0.2在前,0.0.1在后。

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Alipay\OpenAPISDK\Api\AlipayOpenMiniVersionListApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);

$bundleId = com.alipay.alipaywallet; // string | 端参数,用于查询多端版本,不传默认为支付宝端。。常见支持如下客户端: com.alipay.alipaywallet:支付宝端; com.alibaba.android.rimet:DINGDING端; com.amap.app:高德端; com.alibaba.ailabs.genie.webapps:天猫精灵端; com.alipay.iot.xpaas:支付宝IoT端。 如需更多端投放,请联系业务BD。
$versionStatus = AUDITING; // string | 版本状态列表,用英文逗号\",\"分割,可选;不填默认不返回。

try {
    $result = $apiInstance->query($bundleId, $versionStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlipayOpenMiniVersionListApi->query: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
bundleId string 端参数,用于查询多端版本,不传默认为支付宝端。。常见支持如下客户端: com.alipay.alipaywallet:支付宝端; com.alibaba.android.rimet:DINGDING端; com.amap.app:高德端; com.alibaba.ailabs.genie.webapps:天猫精灵端; com.alipay.iot.xpaas:支付宝IoT端。 如需更多端投放,请联系业务BD。 [optional]
versionStatus string 版本状态列表,用英文逗号&quot;,&quot;分割,可选;不填默认不返回。 [optional]

Return type

\Alipay\OpenAPISDK\Model\AlipayOpenMiniVersionListQueryResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]