TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleHouseShopEditRequest req = new AlibabaIdleHouseShopEditRequest();
AlibabaIdleHouseShopEditRequest.HousingCommercializationShopDTO obj1 = new AlibabaIdleHouseShopEditRequest.HousingCommercializationShopDTO();
obj1.setProofImgs(new Long[] { };
);
obj1.setEmployeeCardNo("400820");
obj1.setBusinessName("xx公司");
obj1.setBusinessIndustry(1L);
obj1.setTitle("标题:测试请不要拍");
obj1.setBusinessCode("11111111");
AlibabaIdleHouseShopEditRequest.RentInfoDTO obj2 = new AlibabaIdleHouseShopEditRequest.RentInfoDTO();
obj2.setPriceUnit(5L);
obj2.setMonthsNumsForRent(12L);
obj2.setIsVacant(1L);
obj2.setRentableDate("2028年4月11日");
obj2.setPaymentMethod(1L);
obj2.setDepositMonths(12L);
obj2.setSplitType(2L);
obj2.setFreeRentMonths(1L);
obj1.setRentInfo(obj2);
obj1.setPrice(100000L);
obj1.setPoiId("1");
obj1.setSupportingFacilities("1,2");
obj1.setPropertyFee(160L);
obj1.setEmployeeIdCardNo("23011111111111");
obj1.setEncryMemberName("xxxxxx");
obj1.setDecoration(1L);
obj1.setOperatingStatus(1L);
obj1.setFloorArea("180");
obj1.setOtherFees("空调费XX元/月");
obj1.setImgs(new Long[] { };
);
obj1.setIsSplit(true);
obj1.setEmployeeName("张三");
obj1.setBusinessScope(1L);
obj1.setTags("1,2");
obj1.setCanRegister(true);
obj1.setShopNature(2L);
obj1.setTotalFloor(30L);
obj1.setCurrentFloor(20L);
obj1.setShopType(1L);
obj1.setItemId(1111111L);
obj1.setDesc("这是描述啊");
obj1.setPassengerFlow(1L);
req.setHousingCommercializationShopDto(obj1);
AlibabaIdleHouseShopEditResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIdleHouseShopEditRequest req = new AlibabaIdleHouseShopEditRequest();
AlibabaIdleHouseShopEditRequest.HousingCommercializationShopDTODomain obj1 = new AlibabaIdleHouseShopEditRequest.HousingCommercializationShopDTODomain();
obj1.ProofImgs = new long[] { };
;
obj1.EmployeeCardNo = "400820";
obj1.BusinessName = "xx公司";
obj1.BusinessIndustry = 1L;
obj1.Title = "标题:测试请不要拍";
obj1.BusinessCode = "11111111";
AlibabaIdleHouseShopEditRequest.RentInfoDTODomain obj2 = new AlibabaIdleHouseShopEditRequest.RentInfoDTODomain();
obj2.PriceUnit = 5L;
obj2.MonthsNumsForRent = 12L;
obj2.IsVacant = 1L;
obj2.RentableDate = "2028年4月11日";
obj2.PaymentMethod = 1L;
obj2.DepositMonths = 12L;
obj2.SplitType = 2L;
obj2.FreeRentMonths = 1L;
obj1.RentInfo= obj2;
obj1.Price = 100000L;
obj1.PoiId = "1";
obj1.SupportingFacilities = "1,2";
obj1.PropertyFee = 160L;
obj1.EmployeeIdCardNo = "23011111111111";
obj1.EncryMemberName = "xxxxxx";
obj1.Decoration = 1L;
obj1.OperatingStatus = 1L;
obj1.FloorArea = "180";
obj1.OtherFees = "空调费XX元/月";
obj1.Imgs = new long[] { };
;
obj1.IsSplit = true;
obj1.EmployeeName = "张三";
obj1.BusinessScope = 1L;
obj1.Tags = "1,2";
obj1.CanRegister = true;
obj1.ShopNature = 2L;
obj1.TotalFloor = 30L;
obj1.CurrentFloor = 20L;
obj1.ShopType = 1L;
obj1.ItemId = 1111111L;
obj1.Desc = "这是描述啊";
obj1.PassengerFlow = 1L;
req.HousingCommercializationShopDto_ = obj1;
AlibabaIdleHouseShopEditResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIdleHouseShopEditRequest;
$housing_commercialization_shop_dto = new HousingCommercializationShopDTO;
$housing_commercialization_shop_dto->proof_imgs="[]";
$housing_commercialization_shop_dto->employee_card_no="400820";
$housing_commercialization_shop_dto->business_name="xx公司";
$housing_commercialization_shop_dto->business_industry="1";
$housing_commercialization_shop_dto->title="标题:测试请不要拍";
$housing_commercialization_shop_dto->business_code="11111111";
$rent_info = new RentInfoDTO;
$rent_info->price_unit="5";
$rent_info->months_nums_for_rent="12";
$rent_info->is_vacant="1";
$rent_info->rentable_date="2028年4月11日";
$rent_info->payment_method="1";
$rent_info->deposit_months="12";
$rent_info->split_type="2";
$rent_info->free_rent_months="1";
$housing_commercialization_shop_dto->rent_info = $rent_info;
$housing_commercialization_shop_dto->price="100000";
$housing_commercialization_shop_dto->poi_id="1";
$housing_commercialization_shop_dto->supporting_facilities="[1,2]";
$housing_commercialization_shop_dto->property_fee="160";
$housing_commercialization_shop_dto->employee_id_card_no="23011111111111";
$housing_commercialization_shop_dto->encry_member_name="xxxxxx";
$housing_commercialization_shop_dto->decoration="1";
$housing_commercialization_shop_dto->operating_status="1";
$housing_commercialization_shop_dto->floor_area="180";
$housing_commercialization_shop_dto->other_fees="空调费XX元/月";
$housing_commercialization_shop_dto->imgs="[]";
$housing_commercialization_shop_dto->is_split="true";
$housing_commercialization_shop_dto->employee_name="张三";
$housing_commercialization_shop_dto->business_scope="1";
$housing_commercialization_shop_dto->tags="[1,2]";
$housing_commercialization_shop_dto->can_register="true";
$housing_commercialization_shop_dto->shop_nature="2";
$housing_commercialization_shop_dto->total_floor="30";
$housing_commercialization_shop_dto->current_floor="20";
$housing_commercialization_shop_dto->shop_type="1";
$housing_commercialization_shop_dto->item_id="1111111";
$housing_commercialization_shop_dto->desc="这是描述啊";
$housing_commercialization_shop_dto->passenger_flow="1";
$req->setHousingCommercializationShopDto(json_encode($housing_commercialization_shop_dto));
$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.idle.house.shop.edit' \
-d 'partner_id=apidoc' \
-d 'sign=CDA0287B565E529AE29C773C455A4094' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-03+03%3A25%3A06' \
-d 'v=2.0' \
-d 'housing_commercialization_shop_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIdleHouseShopEditRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.housing_commercialization_shop_dto="数据结构示例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.idle.house.shop.edit");
add_param(pRequest,"housing_commercialization_shop_dto","数据结构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.idle.house.shop.edit', {
'housing_commercialization_shop_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})