TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthPwRehabilitationServicesSubmitRequest req = new AlibabaAlihealthPwRehabilitationServicesSubmitRequest();
AlibabaAlihealthPwRehabilitationServicesSubmitRequest.SubmitRehabilitationInfoRequest obj1 = new AlibabaAlihealthPwRehabilitationServicesSubmitRequest.SubmitRehabilitationInfoRequest();
obj1.setSymptoms("腰疼");
obj1.setDoctorId("01245546005237712680");
obj1.setEffect("治愈");
obj1.setSex(1L);
obj1.setServiceItems("血压");
obj1.setDeviceIdentification("123");
obj1.setSatisfaction("非常满意");
obj1.setUserName("淘小二");
obj1.setUserId("130xxxxxxxxxxxxxxx");
obj1.setServiceTime("2023-04-10 22:00:00");
obj1.setAge(23L);
req.setBody(obj1);
AlibabaAlihealthPwRehabilitationServicesSubmitResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthPwRehabilitationServicesSubmitRequest req = new AlibabaAlihealthPwRehabilitationServicesSubmitRequest();
AlibabaAlihealthPwRehabilitationServicesSubmitRequest.SubmitRehabilitationInfoRequestDomain obj1 = new AlibabaAlihealthPwRehabilitationServicesSubmitRequest.SubmitRehabilitationInfoRequestDomain();
obj1.Symptoms = "腰疼";
obj1.DoctorId = "01245546005237712680";
obj1.Effect = "治愈";
obj1.Sex = 1L;
obj1.ServiceItems = "血压";
obj1.DeviceIdentification = "123";
obj1.Satisfaction = "非常满意";
obj1.UserName = "淘小二";
obj1.UserId = "130xxxxxxxxxxxxxxx";
obj1.ServiceTime = "2023-04-10 22:00:00";
obj1.Age = 23L;
req.Body_ = obj1;
AlibabaAlihealthPwRehabilitationServicesSubmitResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthPwRehabilitationServicesSubmitRequest;
$body = new SubmitRehabilitationInfoRequest;
$body->symptoms="腰疼";
$body->doctor_id="01245546005237712680";
$body->effect="治愈";
$body->sex="1";
$body->service_items="血压";
$body->device_identification="123";
$body->satisfaction="非常满意";
$body->user_name="淘小二";
$body->user_id="130xxxxxxxxxxxxxxx";
$body->service_time="2023-04-10 22:00:00";
$body->age="23";
$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.rehabilitation.services.submit' \
-d 'partner_id=apidoc' \
-d 'sign=F6FE8C8AF1B5B48547D0EE403F8B5320' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-17+03%3A15%3A53' \
-d 'v=2.0' \
-d 'body=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthPwRehabilitationServicesSubmitRequest(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.rehabilitation.services.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.rehabilitation.services.submit', {
'body':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})