TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugKytWesListpartsRequest req = new AlibabaAlihealthDrugKytWesListpartsRequest();
req.setRefEntId("320000000000127971");
req.setLicenseToken("服务时间");
req.setEntName("测试企业");
req.setRefPartnerId("123001129");
req.setBeginDate("2021-12-26 13:55:00");
req.setEndDate("2021-12-28 13:55:00");
req.setPageSize(20L);
req.setPage(1L);
AlibabaAlihealthDrugKytWesListpartsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthDrugKytWesListpartsRequest req = new AlibabaAlihealthDrugKytWesListpartsRequest();
req.RefEntId = "320000000000127971";
req.LicenseToken = "服务时间";
req.EntName = "测试企业";
req.RefPartnerId = "123001129";
req.BeginDate = "2021-12-26 13:55:00";
req.EndDate = "2021-12-28 13:55:00";
req.PageSize = 20L;
req.Page = 1L;
AlibabaAlihealthDrugKytWesListpartsResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthDrugKytWesListpartsRequest;
$req->setRefEntId("320000000000127971");
$req->setLicenseToken("服务时间");
$req->setEntName("测试企业");
$req->setRefPartnerId("123001129");
$req->setBeginDate("2021-12-26 13:55:00");
$req->setEndDate("2021-12-28 13:55:00");
$req->setPageSize("20");
$req->setPage("1");
$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.drug.kyt.wes.listparts' \
-d 'partner_id=apidoc' \
-d 'sign=F9B18CCF7151176099DA751E85DA137A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+15%3A16%3A37' \
-d 'v=2.0' \
-d 'begin_date=2021-12-26+13%3A55%3A00' \
-d 'end_date=2021-12-28+13%3A55%3A00' \
-d 'ent_name=%E6%B5%8B%E8%AF%95%E4%BC%81%E4%B8%9A' \
-d 'license_token=%E6%9C%8D%E5%8A%A1%E6%97%B6%E9%97%B4' \
-d 'page=1' \
-d 'page_size=20' \
-d 'ref_ent_id=320000000000127971' \
-d 'ref_partner_id=123001129'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthDrugKytWesListpartsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ref_ent_id="320000000000127971"
req.license_token="服务时间"
req.ent_name="测试企业"
req.ref_partner_id="123001129"
req.begin_date="2021-12-26 13:55:00"
req.end_date="2021-12-28 13:55:00"
req.page_size=20
req.page=1
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.drug.kyt.wes.listparts");
add_param(pRequest,"ref_ent_id","320000000000127971");
add_param(pRequest,"license_token","服务时间");
add_param(pRequest,"ent_name","测试企业");
add_param(pRequest,"ref_partner_id","123001129");
add_param(pRequest,"begin_date","2021-12-26 13:55:00");
add_param(pRequest,"end_date","2021-12-28 13:55:00");
add_param(pRequest,"page_size","20");
add_param(pRequest,"page","1");
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.drug.kyt.wes.listparts', {
'ref_ent_id':'320000000000127971',
'license_token':'服务时间',
'ent_name':'测试企业',
'ref_partner_id':'123001129',
'begin_date':'2021-12-26 13:55:00',
'end_date':'2021-12-28 13:55:00',
'page_size':'20',
'page':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})