TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthBrandDataCheckAllRequest req = new AlibabaAlihealthBrandDataCheckAllRequest();
AlibabaAlihealthBrandDataCheckAllRequest.DataCheckRO obj1 = new AlibabaAlihealthBrandDataCheckAllRequest.DataCheckRO();
List<AlibabaAlihealthBrandDataCheckAllRequest.InboundCheck> list3 = new ArrayList<AlibabaAlihealthBrandDataCheckAllRequest.InboundCheck>();
AlibabaAlihealthBrandDataCheckAllRequest.InboundCheck obj4 = new AlibabaAlihealthBrandDataCheckAllRequest.InboundCheck();
list3.add(obj4);
obj4.setReceiveTime("20170110");
obj4.setTotalQuantity(1L);
obj4.setCountNum(12L);
obj4.setBrandId("24332");
obj4.setScItemId("124324");
obj4.setTotalReceiveNormalQty(1L);
obj4.setTotalReceiveDefectiveQty(1L);
obj1.setInboundCheckList(list3);
obj1.setType(1L);
List<AlibabaAlihealthBrandDataCheckAllRequest.OutboundCheck> list6 = new ArrayList<AlibabaAlihealthBrandDataCheckAllRequest.OutboundCheck>();
AlibabaAlihealthBrandDataCheckAllRequest.OutboundCheck obj7 = new AlibabaAlihealthBrandDataCheckAllRequest.OutboundCheck();
list6.add(obj7);
obj7.setSellerNick("大药房");
obj7.setOutboundTime("20220516");
obj7.setTotalQuantity(12L);
obj7.setCountNum(12L);
obj7.setBrandId("123213");
obj7.setPrescribedDate("20220516");
obj7.setScItemId("234345");
obj7.setHospitalName("互联网医院");
obj7.setTotalBoxes(123L);
obj1.setOutboundCheckList(list6);
obj1.setInvokeDate("20220521");
req.setDataCheckRo(obj1);
AlibabaAlihealthBrandDataCheckAllResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthBrandDataCheckAllRequest req = new AlibabaAlihealthBrandDataCheckAllRequest();
AlibabaAlihealthBrandDataCheckAllRequest.DataCheckRODomain obj1 = new AlibabaAlihealthBrandDataCheckAllRequest.DataCheckRODomain();
List<AlibabaAlihealthBrandDataCheckAllRequest.InboundCheckDomain> list3 = new List<AlibabaAlihealthBrandDataCheckAllRequest.InboundCheckDomain>();
AlibabaAlihealthBrandDataCheckAllRequest.InboundCheckDomain obj4 = new AlibabaAlihealthBrandDataCheckAllRequest.InboundCheckDomain();
list3.Add(obj4);
obj4.ReceiveTime = "20170110";
obj4.TotalQuantity = 1L;
obj4.CountNum = 12L;
obj4.BrandId = "24332";
obj4.ScItemId = "124324";
obj4.TotalReceiveNormalQty = 1L;
obj4.TotalReceiveDefectiveQty = 1L;
obj1.InboundCheckList= list3;
obj1.Type = 1L;
List<AlibabaAlihealthBrandDataCheckAllRequest.OutboundCheckDomain> list6 = new List<AlibabaAlihealthBrandDataCheckAllRequest.OutboundCheckDomain>();
AlibabaAlihealthBrandDataCheckAllRequest.OutboundCheckDomain obj7 = new AlibabaAlihealthBrandDataCheckAllRequest.OutboundCheckDomain();
list6.Add(obj7);
obj7.SellerNick = "大药房";
obj7.OutboundTime = "20220516";
obj7.TotalQuantity = 12L;
obj7.CountNum = 12L;
obj7.BrandId = "123213";
obj7.PrescribedDate = "20220516";
obj7.ScItemId = "234345";
obj7.HospitalName = "互联网医院";
obj7.TotalBoxes = 123L;
obj1.OutboundCheckList= list6;
obj1.InvokeDate = "20220521";
req.DataCheckRo_ = obj1;
AlibabaAlihealthBrandDataCheckAllResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthBrandDataCheckAllRequest;
$data_check_ro = new DataCheckRO;
$inbound_check_list = new InboundCheck;
$inbound_check_list->receive_time="20170110";
$inbound_check_list->total_quantity="1";
$inbound_check_list->count_num="12";
$inbound_check_list->brand_id="24332";
$inbound_check_list->sc_item_id="124324";
$inbound_check_list->total_receive_normal_qty="1";
$inbound_check_list->total_receive_defective_qty="1";
$data_check_ro->inbound_check_list = $inbound_check_list;
$data_check_ro->type="1";
$outbound_check_list = new OutboundCheck;
$outbound_check_list->seller_nick="大药房";
$outbound_check_list->outbound_time="20220516";
$outbound_check_list->total_quantity="12";
$outbound_check_list->count_num="12";
$outbound_check_list->brand_id="123213";
$outbound_check_list->prescribed_date="20220516";
$outbound_check_list->sc_item_id="234345";
$outbound_check_list->hospital_name="互联网医院";
$outbound_check_list->total_boxes="123";
$data_check_ro->outbound_check_list = $outbound_check_list;
$data_check_ro->invoke_date="20220521";
$req->setDataCheckRo(json_encode($data_check_ro));
$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.brand.data.check.all' \
-d 'partner_id=apidoc' \
-d 'sign=74A276A9829BB184212C3EA221DF085E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-26+14%3A28%3A09' \
-d 'v=2.0' \
-d 'data_check_ro=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthBrandDataCheckAllRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.data_check_ro="数据结构示例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.brand.data.check.all");
add_param(pRequest,"data_check_ro","数据结构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.brand.data.check.all', {
'data_check_ro':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})