TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthExaminationHospitalPublishRequest req = new AlibabaAlihealthExaminationHospitalPublishRequest();
req.setDetail("简介");
req.setTel("4001023");
req.setCityName("杭州");
req.setCityCode("330100");
req.setType("publish");
req.setKeyWord("公立、民营、连锁、二甲、社区卫生院");
req.setExamNotice("须知(废弃)");
req.setPointX("120.147733");
req.setPointY("40.22077");
req.setAddress("东海路2号");
req.setWorkTime("工作日08:00~18:00");
req.setHospitalName("北京宣武门医院");
req.setHospitalCode("1");
req.setRoutes("公交108路下车对面");
req.setLogo("门店logo的url地址");
req.setOnlineReport(1L);
req.setSocialCreditCode("5466X7778");
req.setReportWay("体检后一般在7-15个工作日出具报告,请到体检中心自取纸质报告。");
req.setReportWayOnline("5-16个工作日");
req.setEnvImgsUrl("[\"http://abc.jpg\",\"http://123.png\"]");
req.setSpecialTagsCode("特色服务标签");
req.setNotify("请大家有序排队");
req.setNoteCategory("{ \"1\": \"体检须知\" , \"2\": \"核酸须知\",\"3\":\"上门检测须知\" }");
req.setMode("0");
req.setAgreement("图片地址");
req.setBusinessLicense("图片地址");
req.setMedicalLicense("图片地址");
req.setCategory("1,2");
req.setOtherQualification("其他资质图片地址");
AlibabaAlihealthExaminationHospitalPublishResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthExaminationHospitalPublishRequest req = new AlibabaAlihealthExaminationHospitalPublishRequest();
req.Detail = "简介";
req.Tel = "4001023";
req.CityName = "杭州";
req.CityCode = "330100";
req.Type = "publish";
req.KeyWord = "公立、民营、连锁、二甲、社区卫生院";
req.ExamNotice = "须知(废弃)";
req.PointX = "120.147733";
req.PointY = "40.22077";
req.Address = "东海路2号";
req.WorkTime = "工作日08:00~18:00";
req.HospitalName = "北京宣武门医院";
req.HospitalCode = "1";
req.Routes = "公交108路下车对面";
req.Logo = "门店logo的url地址";
req.OnlineReport = 1L;
req.SocialCreditCode = "5466X7778";
req.ReportWay = "体检后一般在7-15个工作日出具报告,请到体检中心自取纸质报告。";
req.ReportWayOnline = "5-16个工作日";
req.EnvImgsUrl = "[\"http://abc.jpg\",\"http://123.png\"]";
req.SpecialTagsCode = "特色服务标签";
req.Notify = "请大家有序排队";
req.NoteCategory = "{ \"1\": \"体检须知\" , \"2\": \"核酸须知\",\"3\":\"上门检测须知\" }";
req.Mode = "0";
req.Agreement = "图片地址";
req.BusinessLicense = "图片地址";
req.MedicalLicense = "图片地址";
req.Category = "1,2";
req.OtherQualification = "其他资质图片地址";
AlibabaAlihealthExaminationHospitalPublishResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthExaminationHospitalPublishRequest;
$req->setDetail("简介");
$req->setTel("4001023");
$req->setCityName("杭州");
$req->setCityCode("330100");
$req->setType("publish");
$req->setKeyWord("公立、民营、连锁、二甲、社区卫生院");
$req->setExamNotice("须知(废弃)");
$req->setPointX("120.147733");
$req->setPointY("40.22077");
$req->setAddress("东海路2号");
$req->setWorkTime("工作日08:00~18:00");
$req->setHospitalName("北京宣武门医院");
$req->setHospitalCode("1");
$req->setRoutes("公交108路下车对面");
$req->setLogo("门店logo的url地址");
$req->setOnlineReport("1");
$req->setSocialCreditCode("5466X7778");
$req->setReportWay("体检后一般在7-15个工作日出具报告,请到体检中心自取纸质报告。");
$req->setReportWayOnline("5-16个工作日");
$req->setEnvImgsUrl("[\"http://abc.jpg\",\"http://123.png\"]");
$req->setSpecialTagsCode("特色服务标签");
$req->setNotify("请大家有序排队");
$req->setNoteCategory("{ \"1\": \"体检须知\" , \"2\": \"核酸须知\",\"3\":\"上门检测须知\" }");
$req->setMode("0");
$req->setAgreement("图片地址");
$req->setBusinessLicense("图片地址");
$req->setMedicalLicense("图片地址");
$req->setCategory("1,2");
$req->setOtherQualification("其他资质图片地址");
$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.examination.hospital.publish' \
-d 'partner_id=apidoc' \
-d 'sign=44CD61E9515B2AC6ECDE564E69BCEE1A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-29+06%3A39%3A30' \
-d 'v=2.0' \
-d 'address=%E4%B8%9C%E6%B5%B7%E8%B7%AF2%E5%8F%B7' \
-d 'agreement=%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80' \
-d 'business_license=%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80' \
-d 'category=1%2C2' \
-d 'city_code=330100' \
-d 'city_name=%E6%9D%AD%E5%B7%9E' \
-d 'detail=%E7%AE%80%E4%BB%8B' \
-d 'env_imgs_url=%22http%3A%2F%2Fabc.jpg%22%2C%22http%3A%2F%2F123.png%22' \
-d 'exam_notice=%E9%A1%BB%E7%9F%A5%28%E5%BA%9F%E5%BC%83%29' \
-d 'hospital_code=1' \
-d 'hospital_name=%E5%8C%97%E4%BA%AC%E5%AE%A3%E6%AD%A6%E9%97%A8%E5%8C%BB%E9%99%A2' \
-d 'key_word=%E5%85%AC%E7%AB%8B%E3%80%81%E6%B0%91%E8%90%A5%E3%80%81%E8%BF%9E%E9%94%81%E3%80%81%E4%BA%8C%E7%94%B2%E3%80%81%E7%A4%BE%E5%8C%BA%E5%8D%AB%E7%94%9F%E9%99%A2' \
-d 'logo=%E9%97%A8%E5%BA%97logo%E7%9A%84url%E5%9C%B0%E5%9D%80' \
-d 'medical_license=%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80' \
-d 'mode=0' \
-d 'note_category=%7B++%5C%221%5C%22%3A+%5C%22%E4%BD%93%E6%A3%80%E9%A1%BB%E7%9F%A5%5C%22+%2C+%5C%222%5C%22%3A+%5C%22%E6%A0%B8%E9%85%B8%E9%A1%BB%E7%9F%A5%5C%22%2C%5C%223%5C%22%3A%5C%22%E4%B8%8A%E9%97%A8%E6%A3%80%E6%B5%8B%E9%A1%BB%E7%9F%A5%5C%22+%7D' \
-d 'notify=%E8%AF%B7%E5%A4%A7%E5%AE%B6%E6%9C%89%E5%BA%8F%E6%8E%92%E9%98%9F' \
-d 'online_report=1' \
-d 'other_qualification=%E5%85%B6%E4%BB%96%E8%B5%84%E8%B4%A8%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80' \
-d 'point_x=120.147733' \
-d 'point_y=40.22077' \
-d 'report_way=%E4%BD%93%E6%A3%80%E5%90%8E%E4%B8%80%E8%88%AC%E5%9C%A87-15%E4%B8%AA%E5%B7%A5%E4%BD%9C%E6%97%A5%E5%87%BA%E5%85%B7%E6%8A%A5%E5%91%8A%EF%BC%8C%E8%AF%B7%E5%88%B0%E4%BD%93%E6%A3%80%E4%B8%AD%E5%BF%83%E8%87%AA%E5%8F%96%E7%BA%B8%E8%B4%A8%E6%8A%A5%E5%91%8A%E3%80%82' \
-d 'report_way_online=5-16%E4%B8%AA%E5%B7%A5%E4%BD%9C%E6%97%A5' \
-d 'routes=%E5%85%AC%E4%BA%A4108%E8%B7%AF%E4%B8%8B%E8%BD%A6%E5%AF%B9%E9%9D%A2' \
-d 'social_credit_code=5466X7778' \
-d 'special_tags_code=%E7%89%B9%E8%89%B2%E6%9C%8D%E5%8A%A1%E6%A0%87%E7%AD%BE' \
-d 'tel=4001023' \
-d 'type=publish' \
-d 'work_time=%E5%B7%A5%E4%BD%9C%E6%97%A508%3A00%EF%BD%9E18%3A00'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthExaminationHospitalPublishRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.detail="简介"
req.tel="4001023"
req.city_name="杭州"
req.city_code="330100"
req.type="publish"
req.key_word="公立、民营、连锁、二甲、社区卫生院"
req.exam_notice="须知(废弃)"
req.point_x="120.147733"
req.point_y="40.22077"
req.address="东海路2号"
req.work_time="工作日08:00~18:00"
req.hospital_name="北京宣武门医院"
req.hospital_code="1"
req.routes="公交108路下车对面"
req.logo="门店logo的url地址"
req.online_report=1
req.social_credit_code="5466X7778"
req.report_way="体检后一般在7-15个工作日出具报告,请到体检中心自取纸质报告。"
req.report_way_online="5-16个工作日"
req.env_imgs_url="[\"http://abc.jpg\",\"http://123.png\"]"
req.special_tags_code="特色服务标签"
req.notify="请大家有序排队"
req.note_category="{ \"1\": \"体检须知\" , \"2\": \"核酸须知\",\"3\":\"上门检测须知\" }"
req.mode="0"
req.agreement="图片地址"
req.business_license="图片地址"
req.medical_license="图片地址"
req.category="1,2"
req.other_qualification="其他资质图片地址"
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.examination.hospital.publish");
add_param(pRequest,"detail","简介");
add_param(pRequest,"tel","4001023");
add_param(pRequest,"city_name","杭州");
add_param(pRequest,"city_code","330100");
add_param(pRequest,"type","publish");
add_param(pRequest,"key_word","公立、民营、连锁、二甲、社区卫生院");
add_param(pRequest,"exam_notice","须知(废弃)");
add_param(pRequest,"point_x","120.147733");
add_param(pRequest,"point_y","40.22077");
add_param(pRequest,"address","东海路2号");
add_param(pRequest,"work_time","工作日08:00~18:00");
add_param(pRequest,"hospital_name","北京宣武门医院");
add_param(pRequest,"hospital_code","1");
add_param(pRequest,"routes","公交108路下车对面");
add_param(pRequest,"logo","门店logo的url地址");
add_param(pRequest,"online_report","1");
add_param(pRequest,"social_credit_code","5466X7778");
add_param(pRequest,"report_way","体检后一般在7-15个工作日出具报告,请到体检中心自取纸质报告。");
add_param(pRequest,"report_way_online","5-16个工作日");
add_param(pRequest,"env_imgs_url",""http://abc.jpg","http://123.png"");
add_param(pRequest,"special_tags_code","特色服务标签");
add_param(pRequest,"notify","请大家有序排队");
add_param(pRequest,"note_category","{ \"1\": \"体检须知\" , \"2\": \"核酸须知\",\"3\":\"上门检测须知\" }");
add_param(pRequest,"mode","0");
add_param(pRequest,"agreement","图片地址");
add_param(pRequest,"business_license","图片地址");
add_param(pRequest,"medical_license","图片地址");
add_param(pRequest,"category","1,2");
add_param(pRequest,"other_qualification","其他资质图片地址");
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.examination.hospital.publish', {
'detail':'简介',
'tel':'4001023',
'city_name':'杭州',
'city_code':'330100',
'type':'publish',
'key_word':'公立、民营、连锁、二甲、社区卫生院',
'exam_notice':'须知(废弃)',
'point_x':'120.147733',
'point_y':'40.22077',
'address':'东海路2号',
'work_time':'工作日08:00~18:00',
'hospital_name':'北京宣武门医院',
'hospital_code':'1',
'routes':'公交108路下车对面',
'logo':'门店logo的url地址',
'online_report':'1',
'social_credit_code':'5466X7778',
'report_way':'体检后一般在7-15个工作日出具报告,请到体检中心自取纸质报告。',
'report_way_online':'5-16个工作日',
'env_imgs_url':'"http://abc.jpg","http://123.png"',
'special_tags_code':'特色服务标签',
'notify':'请大家有序排队',
'note_category':'{ \"1\": \"体检须知\" , \"2\": \"核酸须知\",\"3\":\"上门检测须知\" }',
'mode':'0',
'agreement':'图片地址',
'business_license':'图片地址',
'medical_license':'图片地址',
'category':'1,2',
'other_qualification':'其他资质图片地址'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})