All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
Sync | POST /v3/alipay/eco/mycar/parking/exitinfo/sync | 车辆驶出接口 |
Object Sync (AlipayEcoMycarParkingExitinfoSyncModel alipayEcoMycarParkingExitinfoSyncModel = null)
车辆驶出接口
上传车辆驶出信息,上传信息通过该接口提交到支付宝,支付宝返回对应的信息
using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;
namespace Example
{
public class SyncExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayEcoMycarParkingExitinfoApi(config);
// 设置alipayConfig参数
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.AppId = "app_id";
alipayConfig.PrivateKey = "private_key";
// 密钥模式
alipayConfig.AlipayPublicKey = "alipay_public_key";
// 证书模式
// alipayConfig.AppCertPath = "../appCertPublicKey.crt";
// alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
// alipayConfig.RootCertPath = "../alipayRootCert.crt";
alipayConfig.EncryptKey = "encrypt_key";
AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);
var alipayEcoMycarParkingExitinfoSyncModel = new AlipayEcoMycarParkingExitinfoSyncModel(); // AlipayEcoMycarParkingExitinfoSyncModel | (optional)
try
{
// 车辆驶出接口
Object result = apiInstance.Sync(alipayEcoMycarParkingExitinfoSyncModel);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayEcoMycarParkingExitinfoApi.Sync: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayEcoMycarParkingExitinfoSyncModel | AlipayEcoMycarParkingExitinfoSyncModel | [optional] |
Object
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |