TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripRentcarCommodityStoreRangeChangeNotifyRequest req = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreRangeInfo obj1 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreRangeInfo();
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreServiceRange> list3 = new ArrayList<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreServiceRange>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreServiceRange obj4 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreServiceRange();
list3.add(obj4);
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.ServiceInfo> list7 = new ArrayList<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.ServiceInfo>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.ServiceInfo obj8 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.ServiceInfo();
list7.add(obj8);
obj8.setChargeFee("30.00");
obj8.setChargeType(0L);
obj8.setAdvanceBookingTime(0L);
obj8.setStartTime("08:00");
obj8.setEndTime("22:00");
obj8.setAdvanceBookingHour("0.5");
list5.setServiceInfoList(list7);
obj4.setRangeType(1L);
obj4.setPickUpType(1L);
obj4.setRangeName("朝阳服务圈");
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Polygon> list11 = new ArrayList<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Polygon>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Polygon obj12 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Polygon();
list11.add(obj12);
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Point> list15 = new ArrayList<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Point>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Point obj16 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Point();
list15.add(obj16);
obj16.setLatitude("39.23232");
obj16.setLongitude("116.23232");
list13.setPoints(list15);
list9.setPolygonList(list11);
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Circle> list19 = new ArrayList<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Circle>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Circle obj20 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.Circle();
list19.add(obj20);
obj20.setLatitude("39.52555");
obj20.setRadius(19999L);
obj20.setLongitude("116.23232");
list17.setCircleList(list19);
obj4.setIsActive(true);
obj4.setRangeCode("10");
obj1.setStoreServiceRangeList(list3);
obj1.setStoreCode("1100");
req.setStoreServiceList(obj1);
req.setExtra("{}");
AlitripRentcarCommodityStoreRangeChangeNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripRentcarCommodityStoreRangeChangeNotifyRequest req = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreRangeInfoDomain obj1 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreRangeInfoDomain();
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreServiceRangeDomain> list3 = new List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreServiceRangeDomain>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreServiceRangeDomain obj4 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.StoreServiceRangeDomain();
list3.Add(obj4);
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.ServiceInfoDomain> list6 = new List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.ServiceInfoDomain>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.ServiceInfoDomain obj7 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.ServiceInfoDomain();
list6.Add(obj7);
obj7.ChargeFee = "30.00";
obj7.ChargeType = 0L;
obj7.AdvanceBookingTime = 0L;
obj7.StartTime = "08:00";
obj7.EndTime = "22:00";
obj7.AdvanceBookingHour = "0.5";
obj4.ServiceInfoList= list6;
obj4.RangeType = 1L;
obj4.PickUpType = 1L;
obj4.RangeName = "朝阳服务圈";
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.PolygonDomain> list9 = new List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.PolygonDomain>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.PolygonDomain obj10 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.PolygonDomain();
list9.Add(obj10);
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.PointDomain> list12 = new List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.PointDomain>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.PointDomain obj13 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.PointDomain();
list12.Add(obj13);
obj13.Latitude = "39.23232";
obj13.Longitude = "116.23232";
obj10.Points= list12;
obj4.PolygonList= list9;
List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.CircleDomain> list15 = new List<AlitripRentcarCommodityStoreRangeChangeNotifyRequest.CircleDomain>();
AlitripRentcarCommodityStoreRangeChangeNotifyRequest.CircleDomain obj16 = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest.CircleDomain();
list15.Add(obj16);
obj16.Latitude = "39.52555";
obj16.Radius = 19999L;
obj16.Longitude = "116.23232";
obj4.CircleList= list15;
obj4.IsActive = true;
obj4.RangeCode = "10";
obj1.StoreServiceRangeList= list3;
obj1.StoreCode = "1100";
req.StoreServiceList_ = obj1;
req.Extra = "{}";
AlitripRentcarCommodityStoreRangeChangeNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripRentcarCommodityStoreRangeChangeNotifyRequest;
$store_service_list = new StoreRangeInfo;
$store_service_range_list = new StoreServiceRange;
$service_info_list = new ServiceInfo;
$service_info_list->charge_fee="30.00";
$service_info_list->charge_type="0";
$service_info_list->advance_booking_time="0";
$service_info_list->start_time="08:00";
$service_info_list->end_time="22:00";
$service_info_list->advance_booking_hour="0.5";
$store_service_range_list->service_info_list = $service_info_list;
$store_service_range_list->range_type="1";
$store_service_range_list->pick_up_type="1";
$store_service_range_list->range_name="朝阳服务圈";
$polygon_list = new Polygon;
$points = new Point;
$points->latitude="39.23232";
$points->longitude="116.23232";
$polygon_list->points = $points;
$store_service_range_list->polygon_list = $polygon_list;
$circle_list = new Circle;
$circle_list->latitude="39.52555";
$circle_list->radius="19999";
$circle_list->longitude="116.23232";
$store_service_range_list->circle_list = $circle_list;
$store_service_range_list->is_active="true";
$store_service_range_list->range_code="10";
$store_service_list->store_service_range_list = $store_service_range_list;
$store_service_list->store_code="1100";
$req->setStoreServiceList(json_encode($store_service_list));
$req->setExtra("{}");
$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=alitrip.rentcar.commodity.store.range.change.notify' \
-d 'partner_id=apidoc' \
-d 'sign=1BAF09CD457D2EE80A855D0B13EE43CD' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-23+21%3A05%3A10' \
-d 'v=2.0' \
-d 'extra=%7B%7D' \
-d 'store_service_list=%E8%A7%81%E5%88%97%E8%A1%A8%E5%86%85%E5%AE%B9'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripRentcarCommodityStoreRangeChangeNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.store_service_list="见列表内容"
req.extra="{}"
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,"alitrip.rentcar.commodity.store.range.change.notify");
add_param(pRequest,"store_service_list","数据结构JSON示例");
add_param(pRequest,"extra","{}");
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('alitrip.rentcar.commodity.store.range.change.notify', {
'store_service_list':'数据结构JSON示例',
'extra':'{}'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})