All URIs are relative to https://openapi.alipay.com.
Method | HTTP request | Description |
---|---|---|
create() | POST /v3/alipay/eco/mycar/parking/parkinglotinfo/create | 录入停车场信息 |
query() | GET /v3/alipay/eco/mycar/parking/parkinglotinfo/query | 停车场信息查询 |
update() | POST /v3/alipay/eco/mycar/parking/parkinglotinfo/update | 修改停车场信息 |
create($alipayEcoMycarParkingParkinglotinfoCreateModel): \Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoCreateResponseModel
录入停车场信息
录入停车场信息,内容信息通过该接口提交到支付宝,支付宝会生成支付宝这边停车场ID反馈给开发者,用户后续更新和上送车辆信息。
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AlipayEcoMycarParkingParkinglotinfoApi(
// 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);
$alipayEcoMycarParkingParkinglotinfoCreateModel = new \Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoCreateModel(); // \Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoCreateModel
try {
$result = $apiInstance->create($alipayEcoMycarParkingParkinglotinfoCreateModel);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AlipayEcoMycarParkingParkinglotinfoApi->create: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
alipayEcoMycarParkingParkinglotinfoCreateModel | \Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoCreateModel | [optional] |
\Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoCreateResponseModel
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to README]
query($parkingId, $outParkingId): \Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoQueryResponseModel
停车场信息查询
停车场信息查询,通过停车场id或者ISV停车场ID查询停车场信息。只能查询正在调用接口商户自己创建的停车场,限制在归属PID层面上。
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AlipayEcoMycarParkingParkinglotinfoApi(
// 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);
$parkingId = PI1535687028031821446; // string | 支付宝停车平台ID,由支付宝定义的该停车场标识,同一个ISV或商户范围内唯一。通过 <a href=\"https://opendocs.alipay.com/apis/api_19/alipay.eco.mycar.parking.parkinglotinfo.create\">alipay.eco.mycar.parking.parkinglotinfo.create</a>(录入停车场信息)接口获取。 注意:parking_id和out_parking_id不能同时为空。
$outParkingId = 10000110001; // string | ISV停车场ID,由ISV定义的停车场标识,同一个ISV或商户范围内唯一。需与 <a href=\"https://opendocs.alipay.com/apis/api_19/alipay.eco.mycar.parking.parkinglotinfo.create\">alipay.eco.mycar.parking.parkinglotinfo.create</a>(录入停车场信息)接口传入值一致。 注意:parking_id和out_parking_id不能同时为空。
try {
$result = $apiInstance->query($parkingId, $outParkingId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AlipayEcoMycarParkingParkinglotinfoApi->query: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
parkingId | string | 支付宝停车平台ID,由支付宝定义的该停车场标识,同一个ISV或商户范围内唯一。通过 <a href="https://opendocs.alipay.com/apis/api_19/alipay.eco.mycar.parking.parkinglotinfo.create\">alipay.eco.mycar.parking.parkinglotinfo.create</a>(录入停车场信息)接口获取。 注意:parking_id和out_parking_id不能同时为空。 | [optional] |
outParkingId | string | ISV停车场ID,由ISV定义的停车场标识,同一个ISV或商户范围内唯一。需与 <a href="https://opendocs.alipay.com/apis/api_19/alipay.eco.mycar.parking.parkinglotinfo.create\">alipay.eco.mycar.parking.parkinglotinfo.create</a>(录入停车场信息)接口传入值一致。 注意:parking_id和out_parking_id不能同时为空。 | [optional] |
\Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoQueryResponseModel
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to README]
update($alipayEcoMycarParkingParkinglotinfoUpdateModel): object
修改停车场信息
录入停车场信息,内容信息通过该接口提交到支付宝,支付宝会生成支付宝这边停车场ID反馈给开发者,用于后续更新和上送车辆信息,停车场名称不允许修改。
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AlipayEcoMycarParkingParkinglotinfoApi(
// 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);
$alipayEcoMycarParkingParkinglotinfoUpdateModel = new \Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoUpdateModel(); // \Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoUpdateModel
try {
$result = $apiInstance->update($alipayEcoMycarParkingParkinglotinfoUpdateModel);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AlipayEcoMycarParkingParkinglotinfoApi->update: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
alipayEcoMycarParkingParkinglotinfoUpdateModel | \Alipay\OpenAPISDK\Model\AlipayEcoMycarParkingParkinglotinfoUpdateModel | [optional] |
object
No authorization required
- Content-Type:
application/json
- Accept:
application/json