TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleConsignmentOtherChannelsUploadRequest req = new AlibabaIdleConsignmentOtherChannelsUploadRequest();
AlibabaIdleConsignmentOtherChannelsUploadRequest.ConsignmentOtherChannelsDTO obj1 = new AlibabaIdleConsignmentOtherChannelsUploadRequest.ConsignmentOtherChannelsDTO();
obj1.setOrderId(1234567789L);
AlibabaIdleConsignmentOtherChannelsUploadRequest.HashMap obj2 = new AlibabaIdleConsignmentOtherChannelsUploadRequest.HashMap();
obj2.setSalesAccountName("xy123992");
obj2.setGroundingSchedule("2023-11-02 00:00:00");
obj2.setGroundingTime("2023-11-02 00:00:00");
obj2.setRemovalTime("2023-11-02 10:00:00");
obj2.setIsUserBargaining(true);
obj2.setUserMaxPrice(1000L);
obj2.setIsSupplierBargaining(true);
obj2.setBargainingTime("2023-11-02 00:00:00");
obj2.setIsContactUser(true);
obj2.setSellerAttitude("notAccept");
obj2.setPayChannel("idle");
obj2.setIsTransactionSuccessful(false);
obj1.setAttributes(obj2);
obj1.setDistributionChannel("idle");
req.setConsignmentOtherChannelsDto(obj1);
AlibabaIdleConsignmentOtherChannelsUploadResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIdleConsignmentOtherChannelsUploadRequest req = new AlibabaIdleConsignmentOtherChannelsUploadRequest();
AlibabaIdleConsignmentOtherChannelsUploadRequest.ConsignmentOtherChannelsDTODomain obj1 = new AlibabaIdleConsignmentOtherChannelsUploadRequest.ConsignmentOtherChannelsDTODomain();
obj1.OrderId = 1234567789L;
AlibabaIdleConsignmentOtherChannelsUploadRequest.HashMapDomain obj2 = new AlibabaIdleConsignmentOtherChannelsUploadRequest.HashMapDomain();
obj2.SalesAccountName = "xy123992";
obj2.GroundingSchedule = "2023-11-02 00:00:00";
obj2.GroundingTime = "2023-11-02 00:00:00";
obj2.RemovalTime = "2023-11-02 10:00:00";
obj2.IsUserBargaining = true;
obj2.UserMaxPrice = 1000L;
obj2.IsSupplierBargaining = true;
obj2.BargainingTime = "2023-11-02 00:00:00";
obj2.IsContactUser = true;
obj2.SellerAttitude = "notAccept";
obj2.PayChannel = "idle";
obj2.IsTransactionSuccessful = false;
obj1.Attributes= obj2;
obj1.DistributionChannel = "idle";
req.ConsignmentOtherChannelsDto_ = obj1;
AlibabaIdleConsignmentOtherChannelsUploadResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIdleConsignmentOtherChannelsUploadRequest;
$consignment_other_channels_dto = new ConsignmentOtherChannelsDTO;
$consignment_other_channels_dto->order_id="1234567789";
$attributes = new HashMap;
$attributes->sales_account_name="xy123992";
$attributes->grounding_schedule="2023-11-02 00:00:00";
$attributes->grounding_time="2023-11-02 00:00:00";
$attributes->removal_time="2023-11-02 10:00:00";
$attributes->is_user_bargaining="true";
$attributes->user_max_price="1000";
$attributes->is_supplier_bargaining="true";
$attributes->bargaining_time="2023-11-02 00:00:00";
$attributes->is_contact_user="true";
$attributes->seller_attitude="notAccept";
$attributes->pay_channel="idle";
$attributes->is_transaction_successful="false";
$consignment_other_channels_dto->attributes = $attributes;
$consignment_other_channels_dto->distribution_channel="idle";
$req->setConsignmentOtherChannelsDto(json_encode($consignment_other_channels_dto));
$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.idle.consignment.other.channels.upload' \
-d 'partner_id=apidoc' \
-d 'session=5b075d5b-11b6-4708-88b2-d2d6eb6c8931' \
-d 'sign=250AF26091F7E9CF10723E97B04A2A11' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+15%3A43%3A33' \
-d 'v=2.0' \
-d 'consignment_other_channels_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIdleConsignmentOtherChannelsUploadRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.consignment_other_channels_dto="数据结构示例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.idle.consignment.other.channels.upload");
add_param(pRequest,"consignment_other_channels_dto","数据结构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.idle.consignment.other.channels.upload', {
'consignment_other_channels_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})