TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosChargeMapStationBoxSearchRequest req = new YunosChargeMapStationBoxSearchRequest();
YunosChargeMapStationBoxSearchRequest.BoxStationMapSearchQry obj1 = new YunosChargeMapStationBoxSearchRequest.BoxStationMapSearchQry();
obj1.setCarModel("300107");
obj1.setClassifyData("spList=313744932,395815801,-1;parkFee=1,2");
obj1.setEnableAggregation(true);
obj1.setGeoobj("114|30|115|31");
obj1.setMapScale(500L);
obj1.setNeedClassify(true);
obj1.setNeedDynamic(true);
obj1.setPageIndex(1L);
obj1.setPageSize(10L);
obj1.setSort(1L);
obj1.setSource("car");
obj1.setTraceId("1234reasd");
obj1.setUserLoc("116.3943381,39.91436513");
obj1.setVin("roewe11111");
obj1.setZid("10000000063263");
obj1.setExt("{}");
req.setParamBoxStationMapSearchQry(obj1);
YunosChargeMapStationBoxSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
YunosChargeMapStationBoxSearchRequest req = new YunosChargeMapStationBoxSearchRequest();
YunosChargeMapStationBoxSearchRequest.BoxStationMapSearchQryDomain obj1 = new YunosChargeMapStationBoxSearchRequest.BoxStationMapSearchQryDomain();
obj1.CarModel = "300107";
obj1.ClassifyData = "spList=313744932,395815801,-1;parkFee=1,2";
obj1.EnableAggregation = true;
obj1.Geoobj = "114|30|115|31";
obj1.MapScale = 500L;
obj1.NeedClassify = true;
obj1.NeedDynamic = true;
obj1.PageIndex = 1L;
obj1.PageSize = 10L;
obj1.Sort = 1L;
obj1.Source = "car";
obj1.TraceId = "1234reasd";
obj1.UserLoc = "116.3943381,39.91436513";
obj1.Vin = "roewe11111";
obj1.Zid = "10000000063263";
obj1.Ext = "{}";
req.ParamBoxStationMapSearchQry_ = obj1;
YunosChargeMapStationBoxSearchResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new YunosChargeMapStationBoxSearchRequest;
$param_box_station_map_search_qry = new BoxStationMapSearchQry;
$param_box_station_map_search_qry->car_model="300107";
$param_box_station_map_search_qry->classify_data="spList=313744932,395815801,-1;parkFee=1,2";
$param_box_station_map_search_qry->enable_aggregation="true";
$param_box_station_map_search_qry->geoobj="114|30|115|31";
$param_box_station_map_search_qry->map_scale="500";
$param_box_station_map_search_qry->need_classify="true";
$param_box_station_map_search_qry->need_dynamic="true";
$param_box_station_map_search_qry->page_index="1";
$param_box_station_map_search_qry->page_size="10";
$param_box_station_map_search_qry->sort="1";
$param_box_station_map_search_qry->source="car";
$param_box_station_map_search_qry->trace_id="1234reasd";
$param_box_station_map_search_qry->user_loc="116.3943381,39.91436513";
$param_box_station_map_search_qry->vin="roewe11111";
$param_box_station_map_search_qry->zid="10000000063263";
$param_box_station_map_search_qry->ext="{}";
$req->setParamBoxStationMapSearchQry(json_encode($param_box_station_map_search_qry));
$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=yunos.charge.map.station.box.search' \
-d 'partner_id=apidoc' \
-d 'sign=E872EF1A34E2BD9590F8247C5458683A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-14+17%3A58%3A33' \
-d 'v=2.0' \
-d 'param_box_station_map_search_qry=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.YunosChargeMapStationBoxSearchRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_box_station_map_search_qry="数据结构示例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,"yunos.charge.map.station.box.search");
add_param(pRequest,"param_box_station_map_search_qry","数据结构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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('yunos.charge.map.station.box.search', {
'param_box_station_map_search_qry':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})