TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMedicalStoreSyncRequest req = new AlibabaAlihealthMedicalStoreSyncRequest();
AlibabaAlihealthMedicalStoreSyncRequest.SyncStoreTopRequest obj1 = new AlibabaAlihealthMedicalStoreSyncRequest.SyncStoreTopRequest();
obj1.setIsvStoreId("STORE_1");
obj1.setName("浙大一院");
obj1.setAddress("庆春路999号");
obj1.setLongitude("129.987654");
obj1.setLatitude("32.1234567");
obj1.setAmapPoiId("从高德地图获取的poi信息,有的话");
obj1.setContactNumber("0571123456789");
obj1.setCityCode("110100");
obj1.setGovernmental(true);
obj1.setHospitalLevel("GRADE_THREE_LEVE_SPECIAL");
obj1.setDescription("浙一医院是一家...");
obj1.setBusinessHoursDesc("周一至周五 09:00 - 17:00");
obj1.setLogo("https://xxxx/xx/xx");
obj1.setEnvImages("http://xxxx/xxx/x");
obj1.setAnnouncement("因疫情原因,周末不营业");
obj1.setServiceNotice("体检前12小时禁止饮食");
obj1.setAgreement("http://xxx/xx/xx");
obj1.setBusinessLicense("http://xxxx/xx/xx");
obj1.setMedicalLicense("http://xxxx/xx/xx");
List<AlibabaAlihealthMedicalStoreSyncRequest.SpecialServiceTopModel> list3 = new ArrayList<AlibabaAlihealthMedicalStoreSyncRequest.SpecialServiceTopModel>();
AlibabaAlihealthMedicalStoreSyncRequest.SpecialServiceTopModel obj4 = new AlibabaAlihealthMedicalStoreSyncRequest.SpecialServiceTopModel();
list3.add(obj4);
obj4.setName("24小时免费停车");
obj4.setNameAbbreviate("免费停车");
obj4.setDescription("定位到xxx停车场");
obj4.setStandardCode("T10001");
obj1.setSpecialServices(list3);
obj1.setCouldIssueInvoice(true);
obj1.setCouldIssuePaperReport(true);
obj1.setReportObtainMethodDesc("凭订单向服务商申请,发送到邮箱。凭订单到医院前台领取");
obj1.setInvoiceObtainMethodDesc("邮箱获取");
obj1.setRoutesDesc("乘55路下车");
obj1.setSocialCreditCode("社会信用编码");
obj1.setCouldSyncElectronicReport(true);
obj1.setCouldIssueElectronicReport(true);
obj1.setOtherMattersNeedingAttention("防疫要求必须带口罩");
obj1.setOtherQualification("其他资质图片地址");
req.setParam0(obj1);
AlibabaAlihealthMedicalStoreSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthMedicalStoreSyncRequest req = new AlibabaAlihealthMedicalStoreSyncRequest();
AlibabaAlihealthMedicalStoreSyncRequest.SyncStoreTopRequestDomain obj1 = new AlibabaAlihealthMedicalStoreSyncRequest.SyncStoreTopRequestDomain();
obj1.IsvStoreId = "STORE_1";
obj1.Name = "浙大一院";
obj1.Address = "庆春路999号";
obj1.Longitude = "129.987654";
obj1.Latitude = "32.1234567";
obj1.AmapPoiId = "从高德地图获取的poi信息,有的话";
obj1.ContactNumber = "0571123456789";
obj1.CityCode = "110100";
obj1.Governmental = true;
obj1.HospitalLevel = "GRADE_THREE_LEVE_SPECIAL";
obj1.Description = "浙一医院是一家...";
obj1.BusinessHoursDesc = "周一至周五 09:00 - 17:00";
obj1.Logo = "https://xxxx/xx/xx";
obj1.EnvImages = "http://xxxx/xxx/x";
obj1.Announcement = "因疫情原因,周末不营业";
obj1.ServiceNotice = "体检前12小时禁止饮食";
obj1.Agreement = "http://xxx/xx/xx";
obj1.BusinessLicense = "http://xxxx/xx/xx";
obj1.MedicalLicense = "http://xxxx/xx/xx";
List<AlibabaAlihealthMedicalStoreSyncRequest.SpecialServiceTopModelDomain> list3 = new List<AlibabaAlihealthMedicalStoreSyncRequest.SpecialServiceTopModelDomain>();
AlibabaAlihealthMedicalStoreSyncRequest.SpecialServiceTopModelDomain obj4 = new AlibabaAlihealthMedicalStoreSyncRequest.SpecialServiceTopModelDomain();
list3.Add(obj4);
obj4.Name = "24小时免费停车";
obj4.NameAbbreviate = "免费停车";
obj4.Description = "定位到xxx停车场";
obj4.StandardCode = "T10001";
obj1.SpecialServices= list3;
obj1.CouldIssueInvoice = true;
obj1.CouldIssuePaperReport = true;
obj1.ReportObtainMethodDesc = "凭订单向服务商申请,发送到邮箱。凭订单到医院前台领取";
obj1.InvoiceObtainMethodDesc = "邮箱获取";
obj1.RoutesDesc = "乘55路下车";
obj1.SocialCreditCode = "社会信用编码";
obj1.CouldSyncElectronicReport = true;
obj1.CouldIssueElectronicReport = true;
obj1.OtherMattersNeedingAttention = "防疫要求必须带口罩";
obj1.OtherQualification = "其他资质图片地址";
req.Param0_ = obj1;
AlibabaAlihealthMedicalStoreSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthMedicalStoreSyncRequest;
$param0 = new SyncStoreTopRequest;
$param0->isv_store_id="STORE_1";
$param0->name="浙大一院";
$param0->address="庆春路999号";
$param0->longitude="129.987654";
$param0->latitude="32.1234567";
$param0->amap_poi_id="从高德地图获取的poi信息,有的话";
$param0->contact_number="0571123456789";
$param0->city_code="110100";
$param0->governmental="true";
$param0->hospital_level="GRADE_THREE_LEVE_SPECIAL";
$param0->description="浙一医院是一家...";
$param0->business_hours_desc="周一至周五 09:00 - 17:00";
$param0->logo="https://xxxx/xx/xx";
$param0->env_images="[http://xxxx/xxx/x]";
$param0->announcement="因疫情原因,周末不营业";
$param0->service_notice="体检前12小时禁止饮食";
$param0->agreement="http://xxx/xx/xx";
$param0->business_license="http://xxxx/xx/xx";
$param0->medical_license="http://xxxx/xx/xx";
$special_services = new SpecialServiceTopModel;
$special_services->name="24小时免费停车";
$special_services->name_abbreviate="免费停车";
$special_services->description="定位到xxx停车场";
$special_services->standard_code="T10001";
$param0->special_services = $special_services;
$param0->could_issue_invoice="true";
$param0->could_issue_paper_report="true";
$param0->report_obtain_method_desc="凭订单向服务商申请,发送到邮箱。凭订单到医院前台领取";
$param0->invoice_obtain_method_desc="邮箱获取";
$param0->routes_desc="乘55路下车";
$param0->social_credit_code="社会信用编码";
$param0->could_sync_electronic_report="true";
$param0->could_issue_electronic_report="true";
$param0->other_matters_needing_attention="防疫要求必须带口罩";
$param0->other_qualification="其他资质图片地址";
$req->setParam0(json_encode($param0));
$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.alihealth.medical.store.sync' \
-d 'partner_id=apidoc' \
-d 'sign=086534C1615A0D5E04776CFE73246525' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-18+11%3A27%3A09' \
-d 'v=2.0' \
-d 'param0=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthMedicalStoreSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0="数据结构示例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.alihealth.medical.store.sync");
add_param(pRequest,"param0","数据结构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('alibaba.alihealth.medical.store.sync', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})