TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaProcurementSupplierItemsGetRequest req = new AlibabaProcurementSupplierItemsGetRequest();
AlibabaProcurementSupplierItemsGetRequest.ProductListQueryDto obj1 = new AlibabaProcurementSupplierItemsGetRequest.ProductListQueryDto();
obj1.setDateEnd(1540969200000L);
obj1.setDateStart(0L);
obj1.setPageIndex(0L);
obj1.setPageSize(10L);
obj1.setSellerAccountId("abc");
obj1.setType("order");
req.setProductListQuery(obj1);
AlibabaProcurementSupplierItemsGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaProcurementSupplierItemsGetRequest req = new AlibabaProcurementSupplierItemsGetRequest();
AlibabaProcurementSupplierItemsGetRequest.ProductListQueryDtoDomain obj1 = new AlibabaProcurementSupplierItemsGetRequest.ProductListQueryDtoDomain();
obj1.DateEnd = 1540969200000L;
obj1.DateStart = 0L;
obj1.PageIndex = 0L;
obj1.PageSize = 10L;
obj1.SellerAccountId = "abc";
obj1.Type = "order";
req.ProductListQuery_ = obj1;
AlibabaProcurementSupplierItemsGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaProcurementSupplierItemsGetRequest;
$product_list_query = new ProductListQueryDto;
$product_list_query->date_end="1540969200000";
$product_list_query->date_start="0";
$product_list_query->page_index="0";
$product_list_query->page_size="10";
$product_list_query->seller_account_id="abc";
$product_list_query->type="order";
$req->setProductListQuery(json_encode($product_list_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.procurement.supplier.items.get' \
-d 'partner_id=apidoc' \
-d 'session=49381d6e-230b-4630-bd6f-13cd9da62dda' \
-d 'sign=9D73DD3D0F054FF85632404BF5F7CEE3' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-22+00%3A49%3A00' \
-d 'v=2.0' \
-d 'product_list_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaProcurementSupplierItemsGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.product_list_query=""
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.procurement.supplier.items.get");
add_param(pRequest,"product_list_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.procurement.supplier.items.get', {
'product_list_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})