TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliyunGscProductionInventorydailyReportRequest req = new AliyunGscProductionInventorydailyReportRequest();
List<AliyunGscProductionInventorydailyReportRequest.InventoryDailyParam> list2 = new ArrayList<AliyunGscProductionInventorydailyReportRequest.InventoryDailyParam>();
AliyunGscProductionInventorydailyReportRequest.InventoryDailyParam obj3 = new AliyunGscProductionInventorydailyReportRequest.InventoryDailyParam();
list2.add(obj3);
obj3.setProductCode("1ACXXXXX");
obj3.setStorageTime(StringUtils.parseDateTime("2020-10-27 17:58:00"));
obj3.setActualWarehouseNum(10L);
obj3.setVendorName("供应商名称A");
obj3.setProductName("产品A");
obj3.setVendorCode("vendor001");
obj3.setFactoryInventoryNum(5L);
obj3.setActualWarehouseOutputNum(10L);
req.setInventoryDailyParam(list2);
AliyunGscProductionInventorydailyReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliyunGscProductionInventorydailyReportRequest req = new AliyunGscProductionInventorydailyReportRequest();
List<AliyunGscProductionInventorydailyReportRequest.InventoryDailyParamDomain> list2 = new List<AliyunGscProductionInventorydailyReportRequest.InventoryDailyParamDomain>();
AliyunGscProductionInventorydailyReportRequest.InventoryDailyParamDomain obj3 = new AliyunGscProductionInventorydailyReportRequest.InventoryDailyParamDomain();
list2.Add(obj3);
obj3.ProductCode = "1ACXXXXX";
obj3.StorageTime = DateTime.Parse(2020-10-27 17:58:00");
obj3.ActualWarehouseNum = 10L;
obj3.VendorName = "供应商名称A";
obj3.ProductName = "产品A";
obj3.VendorCode = "vendor001";
obj3.FactoryInventoryNum = 5L;
obj3.ActualWarehouseOutputNum = 10L;
req.InventoryDailyParam_ = list2;
AliyunGscProductionInventorydailyReportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliyunGscProductionInventorydailyReportRequest;
$inventory_daily_param = new InventoryDailyParam;
$inventory_daily_param->product_code="1ACXXXXX";
$inventory_daily_param->storage_time="2020-10-27 17:58:00";
$inventory_daily_param->actual_warehouse_num="10";
$inventory_daily_param->vendor_name="供应商名称A";
$inventory_daily_param->product_name="产品A";
$inventory_daily_param->vendor_code="vendor001";
$inventory_daily_param->factory_inventory_num="5";
$inventory_daily_param->actual_warehouse_output_num="10";
$req->setInventoryDailyParam(json_encode($inventory_daily_param));
$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=aliyun.gsc.production.inventorydaily.report' \
-d 'partner_id=apidoc' \
-d 'sign=D678EB62E340E5FD7E05E56D9D68E602' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-08+19%3A27%3A33' \
-d 'v=2.0' \
-d 'inventory_daily_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliyunGscProductionInventorydailyReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.inventory_daily_param=""
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,"aliyun.gsc.production.inventorydaily.report");
add_param(pRequest,"inventory_daily_param","数据结构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('aliyun.gsc.production.inventorydaily.report', {
'inventory_daily_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})