TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthPwHealthCheckResultSubmitRequest req = new AlibabaAlihealthPwHealthCheckResultSubmitRequest();
AlibabaAlihealthPwHealthCheckResultSubmitRequest.SubmitMeasureInfoRequest obj1 = new AlibabaAlihealthPwHealthCheckResultSubmitRequest.SubmitMeasureInfoRequest();
obj1.setEcgFileUrl("todo");
obj1.setBloodSugarVal("10");
obj1.setHrAvg(90L);
obj1.setHrMin(80L);
obj1.setDealwith("无");
obj1.setHr(90L);
obj1.setAbnorAnalysis("无");
obj1.setType("无");
obj1.setIdNumber("无");
obj1.setEcgLevelCode(0L);
obj1.setHighVal(0L);
obj1.setResult("无");
obj1.setEcgRstBrief("无");
obj1.setEcgTz("无");
obj1.setHrMax(90L);
obj1.setDoctorId("无");
obj1.setAdvise("无");
obj1.setAfName("无");
obj1.setHrVal(1L);
obj1.setPeriod("无");
obj1.setSex(1L);
obj1.setMeasureTime("无");
obj1.setUserName("无");
obj1.setEcgLevelName("无");
obj1.setAfCode(0L);
obj1.setLowVal(100L);
obj1.setEcgLevelStatus(0L);
obj1.setEcgRst("无");
obj1.setEcgRstBig("无");
obj1.setDeviceIdentification("无");
obj1.setAge(20L);
obj1.setMeasureLength("无");
obj1.setClientInfo("{\"versionCode\":25,\"versionName\":\"HM06S_115A1_Ali_V1.0.0.7_B230802 _V1.3.0_R\"}");
obj1.setStructuredInfo("{\"confidence\": [69, 0, 23, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84]}");
req.setBody(obj1);
AlibabaAlihealthPwHealthCheckResultSubmitResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthPwHealthCheckResultSubmitRequest req = new AlibabaAlihealthPwHealthCheckResultSubmitRequest();
AlibabaAlihealthPwHealthCheckResultSubmitRequest.SubmitMeasureInfoRequestDomain obj1 = new AlibabaAlihealthPwHealthCheckResultSubmitRequest.SubmitMeasureInfoRequestDomain();
obj1.EcgFileUrl = "todo";
obj1.BloodSugarVal = "10";
obj1.HrAvg = 90L;
obj1.HrMin = 80L;
obj1.Dealwith = "无";
obj1.Hr = 90L;
obj1.AbnorAnalysis = "无";
obj1.Type = "无";
obj1.IdNumber = "无";
obj1.EcgLevelCode = 0L;
obj1.HighVal = 0L;
obj1.Result = "无";
obj1.EcgRstBrief = "无";
obj1.EcgTz = "无";
obj1.HrMax = 90L;
obj1.DoctorId = "无";
obj1.Advise = "无";
obj1.AfName = "无";
obj1.HrVal = 1L;
obj1.Period = "无";
obj1.Sex = 1L;
obj1.MeasureTime = "无";
obj1.UserName = "无";
obj1.EcgLevelName = "无";
obj1.AfCode = 0L;
obj1.LowVal = 100L;
obj1.EcgLevelStatus = 0L;
obj1.EcgRst = "无";
obj1.EcgRstBig = "无";
obj1.DeviceIdentification = "无";
obj1.Age = 20L;
obj1.MeasureLength = "无";
obj1.ClientInfo = "{\"versionCode\":25,\"versionName\":\"HM06S_115A1_Ali_V1.0.0.7_B230802 _V1.3.0_R\"}";
obj1.StructuredInfo = "{\"confidence\": [69, 0, 23, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84]}";
req.Body_ = obj1;
AlibabaAlihealthPwHealthCheckResultSubmitResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthPwHealthCheckResultSubmitRequest;
$body = new SubmitMeasureInfoRequest;
$body->ecg_file_url="todo";
$body->blood_sugar_val="10";
$body->hr_avg="90";
$body->hr_min="80";
$body->dealwith="无";
$body->hr="90";
$body->abnor_analysis="无";
$body->type="无";
$body->id_number="无";
$body->ecg_level_code="0";
$body->high_val="0";
$body->result="无";
$body->ecg_rst_brief="无";
$body->ecg_tz="无";
$body->hr_max="90";
$body->doctor_id="无";
$body->advise="无";
$body->af_name="无";
$body->hr_val="1";
$body->period="无";
$body->sex="1";
$body->measure_time="无";
$body->user_name="无";
$body->ecg_level_name="无";
$body->af_code="0";
$body->low_val="100";
$body->ecg_level_status="0";
$body->ecg_rst="无";
$body->ecg_rst_big="无";
$body->device_identification="无";
$body->age="20";
$body->measure_length="无";
$body->client_info="{\"versionCode\":25,\"versionName\":\"HM06S_115A1_Ali_V1.0.0.7_B230802 _V1.3.0_R\"}";
$body->structured_info="{\"confidence\": [69, 0, 23, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84]}";
$req->setBody(json_encode($body));
$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.pw.health.check.result.submit' \
-d 'partner_id=apidoc' \
-d 'sign=B045B649100033E59C9A6BC0831750B0' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-16+10%3A24%3A24' \
-d 'v=2.0' \
-d 'body=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthPwHealthCheckResultSubmitRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.body="数据结构示例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.pw.health.check.result.submit");
add_param(pRequest,"body","数据结构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.pw.health.check.result.submit', {
'body':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})