tinywan / antfin-php-sdk
蚂蚁金服金融API平台网关第三方PHP SDK
v0.0.1
2020-06-09 02:14 UTC
Requires
- php: >=5.6
This package is auto-updated.
Last update: 2024-11-09 14:06:44 UTC
README
蚂蚁金服PHP-SDK
安装
composer require tinywan/antfin-php-sdk -vvv
使用
use AntCloudSDKCore\AntCloudClient; // 初始化客户端 $client = new AntCloudClient( "https://prodapigw.cloud.alipay.com/gateway.do", "<your-access-key>", "<your-access-secret>" ); // 构建请求 $request = array( "cert_id" => "0001", "org_did" => "dimychain:66530b21a9bee783234c442b653e909136629a5a3075be7b4d9ae085782e3d36", "method" => "baas.ebc.cert.query", "version" => "1.0", "product_instance_id" => "7304XXXXXXXX", "region_name" => "CN-HANGZHOU-FINANCE", ); // 发送调用请求,解析响应结果 $response = $client->execute($request);