TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDchainAoxiangItemBatchDeleteAsyncRequest req = new AlibabaDchainAoxiangItemBatchDeleteAsyncRequest();
AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ItemBatchDeleteAsyncRequest obj1 = new AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ItemBatchDeleteAsyncRequest();
obj1.setRequestTime(1656674541L);
obj1.setRequestId("xxxxx");
List<AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ScItem> list3 = new ArrayList<AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ScItem>();
AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ScItem obj4 = new AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ScItem();
list3.add(obj4);
obj4.setScItemId("IT01");
obj1.setScItems(list3);
req.setItemDeleteRequest(obj1);
AlibabaDchainAoxiangItemBatchDeleteAsyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaDchainAoxiangItemBatchDeleteAsyncRequest req = new AlibabaDchainAoxiangItemBatchDeleteAsyncRequest();
AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ItemBatchDeleteAsyncRequestDomain obj1 = new AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ItemBatchDeleteAsyncRequestDomain();
obj1.RequestTime = 1656674541L;
obj1.RequestId = "xxxxx";
List<AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ScItemDomain> list3 = new List<AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ScItemDomain>();
AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ScItemDomain obj4 = new AlibabaDchainAoxiangItemBatchDeleteAsyncRequest.ScItemDomain();
list3.Add(obj4);
obj4.ScItemId = "IT01";
obj1.ScItems= list3;
req.ItemDeleteRequest_ = obj1;
AlibabaDchainAoxiangItemBatchDeleteAsyncResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaDchainAoxiangItemBatchDeleteAsyncRequest;
$item_delete_request = new ItemBatchDeleteAsyncRequest;
$item_delete_request->request_time="1656674541";
$item_delete_request->request_id="xxxxx";
$sc_items = new ScItem;
$sc_items->sc_item_id="IT01";
$item_delete_request->sc_items = $sc_items;
$req->setItemDeleteRequest(json_encode($item_delete_request));
$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.dchain.aoxiang.item.batch.delete.async' \
-d 'partner_id=apidoc' \
-d 'session=8b2611f6-e818-48fe-951c-c85391273236' \
-d 'sign=BD1F450BAEE72280792B01E4739067CE' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+21%3A41%3A21' \
-d 'v=2.0' \
-d 'item_delete_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaDchainAoxiangItemBatchDeleteAsyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.item_delete_request="数据结构示例JSON格式"
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.dchain.aoxiang.item.batch.delete.async");
add_param(pRequest,"item_delete_request","数据结构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.dchain.aoxiang.item.batch.delete.async', {
'item_delete_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})