TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusCarportCarIdentifyRequest req = new AlibabaCampusCarportCarIdentifyRequest();
AlibabaCampusCarportCarIdentifyRequest.VehicleTypeQueryParam obj1 = new AlibabaCampusCarportCarIdentifyRequest.VehicleTypeQueryParam();
obj1.setCarNo("陕F89999");
obj1.setCampusId("10001");
req.setVehicleTypeQueryParam(obj1);
AlibabaCampusCarportCarIdentifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaCampusCarportCarIdentifyRequest req = new AlibabaCampusCarportCarIdentifyRequest();
AlibabaCampusCarportCarIdentifyRequest.VehicleTypeQueryParamDomain obj1 = new AlibabaCampusCarportCarIdentifyRequest.VehicleTypeQueryParamDomain();
obj1.CarNo = "陕F89999";
obj1.CampusId = "10001";
req.VehicleTypeQueryParam_ = obj1;
AlibabaCampusCarportCarIdentifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaCampusCarportCarIdentifyRequest;
$vehicle_type_query_param = new VehicleTypeQueryParam;
$vehicle_type_query_param->car_no="陕F89999";
$vehicle_type_query_param->campus_id="10001";
$req->setVehicleTypeQueryParam(json_encode($vehicle_type_query_param));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.campus.carport.car.identify' \
-d 'partner_id=apidoc' \
-d 'sign=BF2889A157B6E56B1B754372F51D3B7D' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-08-25+06%3A02%3A06' \
-d 'v=2.0' \
-d 'vehicle_type_query_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaCampusCarportCarIdentifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.vehicle_type_query_param="数据结构示例JSON格式"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.campus.carport.car.identify");
add_param(pRequest,"vehicle_type_query_param","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.campus.carport.car.identify', {
'vehicle_type_query_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})