TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMedicalChannelInventoryCalendarQueryRequest req = new AlibabaAlihealthMedicalChannelInventoryCalendarQueryRequest();
req.setJkItemId("1234");
req.setJkStoreId("2345");
req.setInventoryDateRangeFrom("2021-12-17");
req.setInventoryDateRangeTo("2021-12-27");
req.setSource("ITEM");
AlibabaAlihealthMedicalChannelInventoryCalendarQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthMedicalChannelInventoryCalendarQueryRequest req = new AlibabaAlihealthMedicalChannelInventoryCalendarQueryRequest();
req.JkItemId = "1234";
req.JkStoreId = "2345";
req.InventoryDateRangeFrom = "2021-12-17";
req.InventoryDateRangeTo = "2021-12-27";
req.Source = "ITEM";
AlibabaAlihealthMedicalChannelInventoryCalendarQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthMedicalChannelInventoryCalendarQueryRequest;
$req->setJkItemId("1234");
$req->setJkStoreId("2345");
$req->setInventoryDateRangeFrom("2021-12-17");
$req->setInventoryDateRangeTo("2021-12-27");
$req->setSource("ITEM");
$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.medical.channel.inventory.calendar.query' \
-d 'partner_id=apidoc' \
-d 'sign=70E4CF7614BC7C5D9CB1760EC1E5B84D' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-19+12%3A20%3A01' \
-d 'v=2.0' \
-d 'inventory_date_range_from=2021-12-17' \
-d 'inventory_date_range_to=2021-12-27' \
-d 'jk_item_id=1234' \
-d 'jk_store_id=2345' \
-d 'source=ITEM'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthMedicalChannelInventoryCalendarQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.jk_item_id="1234"
req.jk_store_id="2345"
req.inventory_date_range_from="2021-12-17"
req.inventory_date_range_to="2021-12-27"
req.source="ITEM"
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.medical.channel.inventory.calendar.query");
add_param(pRequest,"jk_item_id","1234");
add_param(pRequest,"jk_store_id","2345");
add_param(pRequest,"inventory_date_range_from","2021-12-17");
add_param(pRequest,"inventory_date_range_to","2021-12-27");
add_param(pRequest,"source","ITEM");
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.medical.channel.inventory.calendar.query', {
'jk_item_id':'1234',
'jk_store_id':'2345',
'inventory_date_range_from':'2021-12-17',
'inventory_date_range_to':'2021-12-27',
'source':'ITEM'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})