TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugDownUpbillDetailwithcodeRequest req = new AlibabaAlihealthDrugDownUpbillDetailwithcodeRequest();
req.setRefEntId("320000000000000771");
req.setBillCode("供应出库_001");
req.setFromRefUserId("8b0d323bca554a8d88d903a8a71a2730");
req.setToRefUserId("320000000000005163");
req.setAgentRefEntId("320000000000005163");
AlibabaAlihealthDrugDownUpbillDetailwithcodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthDrugDownUpbillDetailwithcodeRequest req = new AlibabaAlihealthDrugDownUpbillDetailwithcodeRequest();
req.RefEntId = "320000000000000771";
req.BillCode = "供应出库_001";
req.FromRefUserId = "8b0d323bca554a8d88d903a8a71a2730";
req.ToRefUserId = "320000000000005163";
req.AgentRefEntId = "320000000000005163";
AlibabaAlihealthDrugDownUpbillDetailwithcodeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthDrugDownUpbillDetailwithcodeRequest;
$req->setRefEntId("320000000000000771");
$req->setBillCode("供应出库_001");
$req->setFromRefUserId("8b0d323bca554a8d88d903a8a71a2730");
$req->setToRefUserId("320000000000005163");
$req->setAgentRefEntId("320000000000005163");
$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.down.upbill.detailwithcode' \
-d 'partner_id=apidoc' \
-d 'sign=56EB53321E4DB81C9F57B6A4D6B06817' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+11%3A07%3A11' \
-d 'v=2.0' \
-d 'agent_ref_ent_id=320000000000005163' \
-d 'bill_code=%E4%BE%9B%E5%BA%94%E5%87%BA%E5%BA%93_001' \
-d 'from_ref_user_id=8b0d323bca554a8d88d903a8a71a2730' \
-d 'ref_ent_id=320000000000000771' \
-d 'to_ref_user_id=320000000000005163'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthDrugDownUpbillDetailwithcodeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ref_ent_id="320000000000000771"
req.bill_code="供应出库_001"
req.from_ref_user_id="8b0d323bca554a8d88d903a8a71a2730"
req.to_ref_user_id="320000000000005163"
req.agent_ref_ent_id="320000000000005163"
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.down.upbill.detailwithcode");
add_param(pRequest,"ref_ent_id","320000000000000771");
add_param(pRequest,"bill_code","供应出库_001");
add_param(pRequest,"from_ref_user_id","8b0d323bca554a8d88d903a8a71a2730");
add_param(pRequest,"to_ref_user_id","320000000000005163");
add_param(pRequest,"agent_ref_ent_id","320000000000005163");
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.down.upbill.detailwithcode', {
'ref_ent_id':'320000000000000771',
'bill_code':'供应出库_001',
'from_ref_user_id':'8b0d323bca554a8d88d903a8a71a2730',
'to_ref_user_id':'320000000000005163',
'agent_ref_ent_id':'320000000000005163'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})