TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpGlobalSupplierItemListInfoQueryRequest req = new AlibabaAscpGlobalSupplierItemListInfoQueryRequest();
AlibabaAscpGlobalSupplierItemListInfoQueryRequest.TopRequest obj1 = new AlibabaAscpGlobalSupplierItemListInfoQueryRequest.TopRequest();
obj1.setSupplierId("300000000015871");
obj1.setPageSize(200L);
obj1.setBeginTime(StringUtils.parseDateTime("2021-09-28 00:00:00"));
obj1.setEndTime(StringUtils.parseDateTime("2021-09-28 00:00:00"));
obj1.setCurrentPage(1L);
req.setSupplyProductPageQuery(obj1);
AlibabaAscpGlobalSupplierItemListInfoQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAscpGlobalSupplierItemListInfoQueryRequest req = new AlibabaAscpGlobalSupplierItemListInfoQueryRequest();
AlibabaAscpGlobalSupplierItemListInfoQueryRequest.TopRequestDomain obj1 = new AlibabaAscpGlobalSupplierItemListInfoQueryRequest.TopRequestDomain();
obj1.SupplierId = "300000000015871";
obj1.PageSize = 200L;
obj1.BeginTime = DateTime.Parse(2021-09-28 00:00:00");
obj1.EndTime = DateTime.Parse(2021-09-28 00:00:00");
obj1.CurrentPage = 1L;
req.SupplyProductPageQuery_ = obj1;
AlibabaAscpGlobalSupplierItemListInfoQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAscpGlobalSupplierItemListInfoQueryRequest;
$supply_product_page_query = new TopRequest;
$supply_product_page_query->supplier_id="300000000015871";
$supply_product_page_query->page_size="200";
$supply_product_page_query->begin_time="2021-09-28 00:00:00";
$supply_product_page_query->end_time="2021-09-28 00:00:00";
$supply_product_page_query->current_page="1";
$req->setSupplyProductPageQuery(json_encode($supply_product_page_query));
$resp = $c->execute($req, $sessionKey);
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.ascp.global.supplier.item.list.info.query' \
-d 'partner_id=apidoc' \
-d 'session=c20e3c0b-cf47-45ba-bb63-007747c998e2' \
-d 'sign=F9508F80B22003146D96E2C340889FD0' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-24+16%3A52%3A13' \
-d 'v=2.0' \
-d 'supply_product_page_query=%7B+++++%5C%22supplyProductPageQueryDTO%5C%22%3A+%7B+++++++++%5C%22currentPage%5C%22%3A+1%2C+++++++++%5C%22pageSize%5C%22%3A+200%2C+++++++++%5C%22beginTime%5C%22%3A+%5C%222020-09-28+00%3A00%3A00%5C%22%2C+++++++++%5C%22endTime%5C%22%3A+%5C%222021-09-28++00%3A00%3A00%5C%22%2C+++++++++%5C%22merchantCode%5C%22%3A+%5C%225000000017578%5C%22%2C+++++++++%5C%22supplierId%5C%22%3A+%5C%222211748591165%5C%22+++++%7D+%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAscpGlobalSupplierItemListInfoQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.supply_product_page_query="{ \"supplyProductPageQueryDTO\": { \"currentPage\": 1, \"pageSize\": 200, \"beginTime\": \"2020-09-28 00:00:00\", \"endTime\": \"2021-09-28 00:00:00\", \"merchantCode\": \"5000000017578\", \"supplierId\": \"2211748591165\" } }"
try:
resp= req.getResponse(sessionkey)
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.ascp.global.supplier.item.list.info.query");
add_param(pRequest,"supply_product_page_query","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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.ascp.global.supplier.item.list.info.query', {
'supply_product_page_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})