TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelAddRequest req = new XhotelAddRequest();
req.setOuterId("12312313");
req.setName("北京饭店");
req.setUsedName("北京饭店");
req.setDomestic(0L);
req.setCountry("China");
req.setProvince(110000L);
req.setCity(110100L);
req.setDistrict(110101L);
req.setBusiness("aaa");
req.setAddress("西直门");
req.setLongitude("111.13");
req.setLatitude("111.1222");
req.setPositionType("G");
req.setTel("0086#010#12345678");
req.setExtend("{\"keyword\":”上地”}");
req.setShid(123123L);
req.setVendor("taobao");
req.setStar("1");
req.setOpeningTime("2015-01-01");
req.setDecorateTime("2015-01-01");
req.setFloors("4-6层");
req.setRooms(10L);
req.setDescription("酒店描述");
req.setPics("[{\"url\":\"http://123.jpg\",\"ismain\":\"false\",\"type\":\"大堂\",\"attribute\":\"普通图\"},{\"url\":\"http://456.jpg\",\"ismain\":\"true\",\"type\":\"公共区域\",\"attribute\":\"全景图\"},{\"url\":\"http://789.jpg\",\"ismain\":\"false\",\"type\":\"大堂\",\"attribute\":\"普通图\"}]");
req.setBrand("1");
req.setPostalCode("邮编");
req.setBookingNotice("{\"hotelInMountaintop\":1,\"needBoat\":1,\"hotelInScenicSpot\":1,\"extraBed\":\"加床收费xx元\",\"extraCharge\":\"\",\"arrivalTime\":\"入住日18点前\",\"extend\":\"\"}");
req.setCreditCardTypes("1,2,3");
req.setOrbitTrack("{ \"orbitTrack\":[ { \"platform\":\"飞猪\", \"ways\":\"直连\" }, { \"platform\":\"去哪儿\", \"ways\":\"直连\" } { \"platform\":\"如家\", \"ways\":\"电话\" }, { \"platform\":\"如家西湖店\", \"ways\":\"人工\" } ] }");
req.setNameE("Beijing hotel");
req.setSupplier("abc");
req.setSettlementCurrency("HKD");
req.setStandardAmuseFacilities("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"75\":true}]}");
req.setStandardRoomFacilities("废弃");
req.setStandardHotelService("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"12\":true,\"free\":true}]}");
req.setStandardHotelFacilities("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"51\":true,\"option\":\"2\"}]}");
req.setStandardBookingNotice("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"free\":true}]}");
req.setServiceType(0L);
req.setHotelType(0L);
req.setCoordinateSystem("WGS84");
req.setRoomFacilities("废弃");
req.setService("废弃");
req.setHotelFacilities("废弃");
req.setHotelPolicies("废弃");
XhotelAddResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
XhotelAddRequest req = new XhotelAddRequest();
req.OuterId = "12312313";
req.Name = "北京饭店";
req.UsedName = "北京饭店";
req.Domestic = 0L;
req.Country = "China";
req.Province = 110000L;
req.City = 110100L;
req.District = 110101L;
req.Business = "aaa";
req.Address = "西直门";
req.Longitude = "111.13";
req.Latitude = "111.1222";
req.PositionType = "G";
req.Tel = "0086#010#12345678";
req.Extend = "{\"keyword\":”上地”}";
req.Shid = 123123L;
req.Vendor = "taobao";
req.Star = "1";
req.OpeningTime = "2015-01-01";
req.DecorateTime = "2015-01-01";
req.Floors = "4-6层";
req.Rooms = 10L;
req.Description = "酒店描述";
req.Pics = "[{\"url\":\"http://123.jpg\",\"ismain\":\"false\",\"type\":\"大堂\",\"attribute\":\"普通图\"},{\"url\":\"http://456.jpg\",\"ismain\":\"true\",\"type\":\"公共区域\",\"attribute\":\"全景图\"},{\"url\":\"http://789.jpg\",\"ismain\":\"false\",\"type\":\"大堂\",\"attribute\":\"普通图\"}]";
req.Brand = "1";
req.PostalCode = "邮编";
req.BookingNotice = "{\"hotelInMountaintop\":1,\"needBoat\":1,\"hotelInScenicSpot\":1,\"extraBed\":\"加床收费xx元\",\"extraCharge\":\"\",\"arrivalTime\":\"入住日18点前\",\"extend\":\"\"}";
req.CreditCardTypes = "1,2,3";
req.OrbitTrack = "{ \"orbitTrack\":[ { \"platform\":\"飞猪\", \"ways\":\"直连\" }, { \"platform\":\"去哪儿\", \"ways\":\"直连\" } { \"platform\":\"如家\", \"ways\":\"电话\" }, { \"platform\":\"如家西湖店\", \"ways\":\"人工\" } ] }";
req.NameE = "Beijing hotel";
req.Supplier = "abc";
req.SettlementCurrency = "HKD";
req.StandardAmuseFacilities = "{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"75\":true}]}";
req.StandardRoomFacilities = "废弃";
req.StandardHotelService = "{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"12\":true,\"free\":true}]}";
req.StandardHotelFacilities = "{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"51\":true,\"option\":\"2\"}]}";
req.StandardBookingNotice = "{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"free\":true}]}";
req.ServiceType = 0L;
req.HotelType = 0L;
req.CoordinateSystem = "WGS84";
req.RoomFacilities = "废弃";
req.Service = "废弃";
req.HotelFacilities = "废弃";
req.HotelPolicies = "废弃";
XhotelAddResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new XhotelAddRequest;
$req->setOuterId("12312313");
$req->setName("北京饭店");
$req->setUsedName("北京饭店");
$req->setDomestic("0");
$req->setCountry("China");
$req->setProvince("110000");
$req->setCity("110100");
$req->setDistrict("110101");
$req->setBusiness("aaa");
$req->setAddress("西直门");
$req->setLongitude("111.13");
$req->setLatitude("111.1222");
$req->setPositionType("G");
$req->setTel("0086#010#12345678");
$req->setExtend("{\"keyword\":”上地”}");
$req->setShid("123123");
$req->setVendor("taobao");
$req->setStar("1");
$req->setOpeningTime("2015-01-01");
$req->setDecorateTime("2015-01-01");
$req->setFloors("4-6层");
$req->setRooms("10");
$req->setDescription("酒店描述");
$req->setPics("[{\"url\":\"http://123.jpg\",\"ismain\":\"false\",\"type\":\"大堂\",\"attribute\":\"普通图\"},{\"url\":\"http://456.jpg\",\"ismain\":\"true\",\"type\":\"公共区域\",\"attribute\":\"全景图\"},{\"url\":\"http://789.jpg\",\"ismain\":\"false\",\"type\":\"大堂\",\"attribute\":\"普通图\"}]");
$req->setBrand("1");
$req->setPostalCode("邮编");
$req->setBookingNotice("{\"hotelInMountaintop\":1,\"needBoat\":1,\"hotelInScenicSpot\":1,\"extraBed\":\"加床收费xx元\",\"extraCharge\":\"\",\"arrivalTime\":\"入住日18点前\",\"extend\":\"\"}");
$req->setCreditCardTypes("1,2,3");
$req->setOrbitTrack("{ \"orbitTrack\":[ { \"platform\":\"飞猪\", \"ways\":\"直连\" }, { \"platform\":\"去哪儿\", \"ways\":\"直连\" } { \"platform\":\"如家\", \"ways\":\"电话\" }, { \"platform\":\"如家西湖店\", \"ways\":\"人工\" } ] }");
$req->setNameE("Beijing hotel");
$req->setSupplier("abc");
$req->setSettlementCurrency("HKD");
$req->setStandardAmuseFacilities("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"75\":true}]}");
$req->setStandardRoomFacilities("废弃");
$req->setStandardHotelService("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"12\":true,\"free\":true}]}");
$req->setStandardHotelFacilities("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"51\":true,\"option\":\"2\"}]}");
$req->setStandardBookingNotice("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"free\":true}]}");
$req->setServiceType("0");
$req->setHotelType("0");
$req->setCoordinateSystem("WGS84");
$req->setRoomFacilities("废弃");
$req->setService("废弃");
$req->setHotelFacilities("废弃");
$req->setHotelPolicies("废弃");
$resp = $c->execute($req, $sessionKey);
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=taobao.xhotel.add' \
-d 'partner_id=apidoc' \
-d 'session=2ad286b1-4c2b-47ea-8c53-19141b9cd1f2' \
-d 'sign=3CC56AB7CBDF71ACC8F03561E6584FDB' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+21%3A03%3A33' \
-d 'v=2.0' \
-d 'address=%E8%A5%BF%E7%9B%B4%E9%97%A8' \
-d 'booking_notice=%7B%5C%22hotelInMountaintop%5C%22%3A1%2C%5C%22needBoat%5C%22%3A1%2C%5C%22hotelInScenicSpot%5C%22%3A1%2C%5C%22extraBed%5C%22%3A%5C%22%E5%8A%A0%E5%BA%8A%E6%94%B6%E8%B4%B9xx%E5%85%83%5C%22%2C%5C%22extraCharge%5C%22%3A%5C%22%5C%22%2C%5C%22arrivalTime%5C%22%3A%5C%22%E5%85%A5%E4%BD%8F%E6%97%A518%E7%82%B9%E5%89%8D%5C%22%2C%5C%22extend%5C%22%3A%5C%22%5C%22%7D' \
-d 'brand=1' \
-d 'business=aaa' \
-d 'city=110100' \
-d 'coordinate_system=WGS84' \
-d 'country=China' \
-d 'credit_card_types=1%2C2%2C3' \
-d 'decorate_time=2015-01-01' \
-d 'description=%E9%85%92%E5%BA%97%E6%8F%8F%E8%BF%B0' \
-d 'district=110101' \
-d 'domestic=0' \
-d 'extend=%7B%5C%22keyword%5C%22%3A%E2%80%9D%E4%B8%8A%E5%9C%B0%E2%80%9D%7D' \
-d 'floors=4-6%E5%B1%82' \
-d 'hotel_facilities=%E5%BA%9F%E5%BC%83' \
-d 'hotel_policies=%E5%BA%9F%E5%BC%83' \
-d 'hotel_type=0' \
-d 'latitude=111.1222' \
-d 'longitude=111.13' \
-d 'name=%E5%8C%97%E4%BA%AC%E9%A5%AD%E5%BA%97' \
-d 'name_e=Beijing+hotel' \
-d 'opening_time=2015-01-01' \
-d 'orbit_track=%7B+%09%5C%22orbitTrack%5C%22%3A%5B+%09%09%7B+%09%09%09%5C%22platform%5C%22%3A%5C%22%E9%A3%9E%E7%8C%AA%5C%22%2C+%09%09%09%5C%22ways%5C%22%3A%5C%22%E7%9B%B4%E8%BF%9E%5C%22++%09%09%7D%2C+%09%09%7B+%09%09%09%5C%22platform%5C%22%3A%5C%22%E5%8E%BB%E5%93%AA%E5%84%BF%5C%22%2C+%09%09%09%5C%22ways%5C%22%3A%5C%22%E7%9B%B4%E8%BF%9E%5C%22+%09%09%7D+%09%09%7B+%09%09%09%5C%22platform%5C%22%3A%5C%22%E5%A6%82%E5%AE%B6%5C%22%2C+%09%09%09%5C%22ways%5C%22%3A%5C%22%E7%94%B5%E8%AF%9D%5C%22+%09%09%7D%2C+%09%09%7B+%09%09%09%5C%22platform%5C%22%3A%5C%22%E5%A6%82%E5%AE%B6%E8%A5%BF%E6%B9%96%E5%BA%97%5C%22%2C+%09%09%09%5C%22ways%5C%22%3A%5C%22%E4%BA%BA%E5%B7%A5%5C%22+%09%09%7D+%09%5D+%7D' \
-d 'outer_id=12312313' \
-d 'pics=%7B%22url%22%3A%22http%3A%2F%2F123.jpg%22%2C%22ismain%22%3A%22false%22%2C%22type%22%3A%22%E5%A4%A7%E5%A0%82%22%2C%22attribute%22%3A%22%E6%99%AE%E9%80%9A%E5%9B%BE%22%7D%2C%7B%22url%22%3A%22http%3A%2F%2F456.jpg%22%2C%22ismain%22%3A%22true%22%2C%22type%22%3A%22%E5%85%AC%E5%85%B1%E5%8C%BA%E5%9F%9F%22%2C%22attribute%22%3A%22%E5%85%A8%E6%99%AF%E5%9B%BE%22%7D%2C%7B%22url%22%3A%22http%3A%2F%2F789.jpg%22%2C%22ismain%22%3A%22false%22%2C%22type%22%3A%22%E5%A4%A7%E5%A0%82%22%2C%22attribute%22%3A%22%E6%99%AE%E9%80%9A%E5%9B%BE%22%7D' \
-d 'position_type=G' \
-d 'postal_code=%E9%82%AE%E7%BC%96' \
-d 'province=110000' \
-d 'room_facilities=%E5%BA%9F%E5%BC%83' \
-d 'rooms=10' \
-d 'service=%E5%BA%9F%E5%BC%83' \
-d 'service_type=0' \
-d 'settlement_currency=HKD' \
-d 'shid=123123' \
-d 'standard_amuse_facilities=%7B%5C%22dataVersion%5C%22%3A%5C%222.0.0%5C%22%2C%5C%22facilityList%5C%22%3A%5B%7B%5C%2275%5C%22%3Atrue%7D%5D%7D' \
-d 'standard_booking_notice=%7B%5C%22dataVersion%5C%22%3A%5C%222.0.0%5C%22%2C%5C%22facilityList%5C%22%3A%5B%7B%5C%22500%5C%22%3Atrue%2C%5C%22free%5C%22%3Atrue%7D%5D%7D' \
-d 'standard_hotel_facilities=%7B%5C%22dataVersion%5C%22%3A%5C%222.0.0%5C%22%2C%5C%22facilityList%5C%22%3A%5B%7B%5C%2251%5C%22%3Atrue%2C%5C%22option%5C%22%3A%5C%222%5C%22%7D%5D%7D' \
-d 'standard_hotel_service=%7B%5C%22dataVersion%5C%22%3A%5C%222.0.0%5C%22%2C%5C%22facilityList%5C%22%3A%5B%7B%5C%2212%5C%22%3Atrue%2C%5C%22free%5C%22%3Atrue%7D%5D%7D' \
-d 'standard_room_facilities=%E5%BA%9F%E5%BC%83' \
-d 'star=1' \
-d 'supplier=abc' \
-d 'tel=0086%23010%2312345678' \
-d 'used_name=%E5%8C%97%E4%BA%AC%E9%A5%AD%E5%BA%97' \
-d 'vendor=taobao'
# -*- coding: utf-8 -*-
import top.api
req=top.api.XhotelAddRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.outer_id="12312313"
req.name="北京饭店"
req.used_name="北京饭店"
req.domestic=0
req.country="China"
req.province=110000
req.city=110100
req.district=110101
req.business="aaa"
req.address="西直门"
req.longitude="111.13"
req.latitude="111.1222"
req.position_type="G"
req.tel="0086#010#12345678"
req.extend="{\"keyword\":”上地”}"
req.shid=123123
req.vendor="taobao"
req.star="1"
req.opening_time="2015-01-01"
req.decorate_time="2015-01-01"
req.floors="4-6层"
req.rooms=10
req.description="酒店描述"
req.pics="[{\"url\":\"http://123.jpg\",\"ismain\":\"false\",\"type\":\"大堂\",\"attribute\":\"普通图\"},{\"url\":\"http://456.jpg\",\"ismain\":\"true\",\"type\":\"公共区域\",\"attribute\":\"全景图\"},{\"url\":\"http://789.jpg\",\"ismain\":\"false\",\"type\":\"大堂\",\"attribute\":\"普通图\"}]"
req.brand="1"
req.postal_code="邮编"
req.booking_notice="{\"hotelInMountaintop\":1,\"needBoat\":1,\"hotelInScenicSpot\":1,\"extraBed\":\"加床收费xx元\",\"extraCharge\":\"\",\"arrivalTime\":\"入住日18点前\",\"extend\":\"\"}"
req.credit_card_types="1,2,3"
req.orbit_track="{ \"orbitTrack\":[ { \"platform\":\"飞猪\", \"ways\":\"直连\" }, { \"platform\":\"去哪儿\", \"ways\":\"直连\" } { \"platform\":\"如家\", \"ways\":\"电话\" }, { \"platform\":\"如家西湖店\", \"ways\":\"人工\" } ] }"
req.name_e="Beijing hotel"
req.supplier="abc"
req.settlement_currency="HKD"
req.standard_amuse_facilities="{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"75\":true}]}"
req.standard_room_facilities="废弃"
req.standard_hotel_service="{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"12\":true,\"free\":true}]}"
req.standard_hotel_facilities="{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"51\":true,\"option\":\"2\"}]}"
req.standard_booking_notice="{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"free\":true}]}"
req.service_type=0
req.hotel_type=0
req.coordinate_system="WGS84"
req.room_facilities="废弃"
req.service="废弃"
req.hotel_facilities="废弃"
req.hotel_policies="废弃"
try:
resp= req.getResponse(sessionkey)
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,"taobao.xhotel.add");
add_param(pRequest,"outer_id","12312313");
add_param(pRequest,"name","北京饭店");
add_param(pRequest,"used_name","北京饭店");
add_param(pRequest,"domestic","0");
add_param(pRequest,"country","China");
add_param(pRequest,"province","110000");
add_param(pRequest,"city","110100");
add_param(pRequest,"district","110101");
add_param(pRequest,"business","aaa");
add_param(pRequest,"address","西直门");
add_param(pRequest,"longitude","111.13");
add_param(pRequest,"latitude","111.1222");
add_param(pRequest,"position_type","G");
add_param(pRequest,"tel","0086#010#12345678");
add_param(pRequest,"extend","{\"keyword\":”上地”}");
add_param(pRequest,"shid","123123");
add_param(pRequest,"vendor","taobao");
add_param(pRequest,"star","1");
add_param(pRequest,"opening_time","2015-01-01");
add_param(pRequest,"decorate_time","2015-01-01");
add_param(pRequest,"floors","4-6层");
add_param(pRequest,"rooms","10");
add_param(pRequest,"description","酒店描述");
add_param(pRequest,"pics","{"url":"http://123.jpg","ismain":"false","type":"大堂","attribute":"普通图"},{"url":"http://456.jpg","ismain":"true","type":"公共区域","attribute":"全景图"},{"url":"http://789.jpg","ismain":"false","type":"大堂","attribute":"普通图"}");
add_param(pRequest,"brand","1");
add_param(pRequest,"postal_code","邮编");
add_param(pRequest,"booking_notice","{\"hotelInMountaintop\":1,\"needBoat\":1,\"hotelInScenicSpot\":1,\"extraBed\":\"加床收费xx元\",\"extraCharge\":\"\",\"arrivalTime\":\"入住日18点前\",\"extend\":\"\"}");
add_param(pRequest,"credit_card_types","1,2,3");
add_param(pRequest,"orbit_track","{ \"orbitTrack\":[ { \"platform\":\"飞猪\", \"ways\":\"直连\" }, { \"platform\":\"去哪儿\", \"ways\":\"直连\" } { \"platform\":\"如家\", \"ways\":\"电话\" }, { \"platform\":\"如家西湖店\", \"ways\":\"人工\" } ] }");
add_param(pRequest,"name_e","Beijing hotel");
add_param(pRequest,"supplier","abc");
add_param(pRequest,"settlement_currency","HKD");
add_param(pRequest,"standard_amuse_facilities","{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"75\":true}]}");
add_param(pRequest,"standard_room_facilities","废弃");
add_param(pRequest,"standard_hotel_service","{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"12\":true,\"free\":true}]}");
add_param(pRequest,"standard_hotel_facilities","{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"51\":true,\"option\":\"2\"}]}");
add_param(pRequest,"standard_booking_notice","{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"free\":true}]}");
add_param(pRequest,"service_type","0");
add_param(pRequest,"hotel_type","0");
add_param(pRequest,"coordinate_system","WGS84");
add_param(pRequest,"room_facilities","废弃");
add_param(pRequest,"service","废弃");
add_param(pRequest,"hotel_facilities","废弃");
add_param(pRequest,"hotel_policies","废弃");
pResponse = top_execute(pClient,pRequest,sessionKey);
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('taobao.xhotel.add', {
'outer_id':'12312313',
'name':'北京饭店',
'used_name':'北京饭店',
'domestic':'0',
'country':'China',
'province':'110000',
'city':'110100',
'district':'110101',
'business':'aaa',
'address':'西直门',
'longitude':'111.13',
'latitude':'111.1222',
'position_type':'G',
'tel':'0086#010#12345678',
'extend':'{\"keyword\":”上地”}',
'shid':'123123',
'vendor':'taobao',
'star':'1',
'opening_time':'2015-01-01',
'decorate_time':'2015-01-01',
'floors':'4-6层',
'rooms':'10',
'description':'酒店描述',
'pics':'{"url":"http://123.jpg","ismain":"false","type":"大堂","attribute":"普通图"},{"url":"http://456.jpg","ismain":"true","type":"公共区域","attribute":"全景图"},{"url":"http://789.jpg","ismain":"false","type":"大堂","attribute":"普通图"}',
'brand':'1',
'postal_code':'邮编',
'booking_notice':'{\"hotelInMountaintop\":1,\"needBoat\":1,\"hotelInScenicSpot\":1,\"extraBed\":\"加床收费xx元\",\"extraCharge\":\"\",\"arrivalTime\":\"入住日18点前\",\"extend\":\"\"}',
'credit_card_types':'1,2,3',
'orbit_track':'{ \"orbitTrack\":[ { \"platform\":\"飞猪\", \"ways\":\"直连\" }, { \"platform\":\"去哪儿\", \"ways\":\"直连\" } { \"platform\":\"如家\", \"ways\":\"电话\" }, { \"platform\":\"如家西湖店\", \"ways\":\"人工\" } ] }',
'name_e':'Beijing hotel',
'supplier':'abc',
'settlement_currency':'HKD',
'standard_amuse_facilities':'{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"75\":true}]}',
'standard_room_facilities':'废弃',
'standard_hotel_service':'{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"12\":true,\"free\":true}]}',
'standard_hotel_facilities':'{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"51\":true,\"option\":\"2\"}]}',
'standard_booking_notice':'{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"free\":true}]}',
'service_type':'0',
'hotel_type':'0',
'coordinate_system':'WGS84',
'room_facilities':'废弃',
'service':'废弃',
'hotel_facilities':'废弃',
'hotel_policies':'废弃'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})