TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleHouseItemCentralLayoutAddRequest req = new AlibabaIdleHouseItemCentralLayoutAddRequest();
req.setLenderNick("房东主淘宝会员名称");
AlibabaIdleHouseItemCentralLayoutAddRequest.RentCentralLayoutReq obj1 = new AlibabaIdleHouseItemCentralLayoutAddRequest.RentCentralLayoutReq();
obj1.setAroundConfig("1");
obj1.setDecorateLevel(1L);
obj1.setBathRoomCnt(1L);
obj1.setLivingRoomCnt(1L);
obj1.setRoomConfig("2");
obj1.setBedRoomCnt(2L);
obj1.setLayoutName("阳光朝北型");
obj1.setRentMode(1L);
obj1.setMinRent(200000L);
obj1.setCommunityId(123L);
obj1.setImageIds(new Long[] { 123 };
);
obj1.setSaasLandlordHouse(false);
req.setRentCentralLayoutReq(obj1);
req.setManagerNick("管家淘宝会员名称");
AlibabaIdleHouseItemCentralLayoutAddResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIdleHouseItemCentralLayoutAddRequest req = new AlibabaIdleHouseItemCentralLayoutAddRequest();
req.LenderNick = "房东主淘宝会员名称";
AlibabaIdleHouseItemCentralLayoutAddRequest.RentCentralLayoutReqDomain obj1 = new AlibabaIdleHouseItemCentralLayoutAddRequest.RentCentralLayoutReqDomain();
obj1.AroundConfig = "1";
obj1.DecorateLevel = 1L;
obj1.BathRoomCnt = 1L;
obj1.LivingRoomCnt = 1L;
obj1.RoomConfig = "2";
obj1.BedRoomCnt = 2L;
obj1.LayoutName = "阳光朝北型";
obj1.RentMode = 1L;
obj1.MinRent = 200000L;
obj1.CommunityId = 123L;
obj1.ImageIds = new long[] { 123 };
;
obj1.SaasLandlordHouse = false;
req.RentCentralLayoutReq_ = obj1;
req.ManagerNick = "管家淘宝会员名称";
AlibabaIdleHouseItemCentralLayoutAddResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIdleHouseItemCentralLayoutAddRequest;
$req->setLenderNick("房东主淘宝会员名称");
$rent_central_layout_req = new RentCentralLayoutReq;
$rent_central_layout_req->around_config="1";
$rent_central_layout_req->decorate_level="1";
$rent_central_layout_req->bath_room_cnt="1";
$rent_central_layout_req->living_room_cnt="1";
$rent_central_layout_req->room_config="2";
$rent_central_layout_req->bed_room_cnt="2";
$rent_central_layout_req->layout_name="阳光朝北型";
$rent_central_layout_req->rent_mode="1";
$rent_central_layout_req->min_rent="200000";
$rent_central_layout_req->community_id="123";
$rent_central_layout_req->image_ids="123";
$rent_central_layout_req->saas_landlord_house="false";
$req->setRentCentralLayoutReq(json_encode($rent_central_layout_req));
$req->setManagerNick("管家淘宝会员名称");
$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.item.central.layout.add' \
-d 'partner_id=apidoc' \
-d 'sign=76E5E080289565C33A31B4049B6EE84F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+16%3A20%3A29' \
-d 'v=2.0' \
-d 'lender_nick=%E6%88%BF%E4%B8%9C%E4%B8%BB%E6%B7%98%E5%AE%9D%E4%BC%9A%E5%91%98%E5%90%8D%E7%A7%B0' \
-d 'manager_nick=%E7%AE%A1%E5%AE%B6%E6%B7%98%E5%AE%9D%E4%BC%9A%E5%91%98%E5%90%8D%E7%A7%B0' \
-d 'rent_central_layout_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIdleHouseItemCentralLayoutAddRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.lender_nick="房东主淘宝会员名称"
req.rent_central_layout_req=""
req.manager_nick="管家淘宝会员名称"
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.item.central.layout.add");
add_param(pRequest,"lender_nick","房东主淘宝会员名称");
add_param(pRequest,"rent_central_layout_req","数据结构JSON示例");
add_param(pRequest,"manager_nick","管家淘宝会员名称");
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('alibaba.idle.house.item.central.layout.add', {
'lender_nick':'房东主淘宝会员名称',
'rent_central_layout_req':'数据结构JSON示例',
'manager_nick':'管家淘宝会员名称'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})