TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoIntegrationProductionOrderSyncRequest req = new RhinoIntegrationProductionOrderSyncRequest();
RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderReq obj1 = new RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderReq();
obj1.setColorName("红色");
obj1.setOrderNo("P1212");
obj1.setStyleNo("238952");
obj1.setStyleName("款式名称");
obj1.setOrderImage("data:image/png;");
obj1.setStyleClassificationBizId("1");
List<RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderDetailReq> list3 = new ArrayList<RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderDetailReq>();
RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderDetailReq obj4 = new RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderDetailReq();
list3.add(obj4);
obj4.setQuantity(100L);
obj4.setSizeName("XL");
obj1.setDetails(list3);
List<RhinoIntegrationProductionOrderSyncRequest.SyncCraftCategoryDetailReq> list6 = new ArrayList<RhinoIntegrationProductionOrderSyncRequest.SyncCraftCategoryDetailReq>();
RhinoIntegrationProductionOrderSyncRequest.SyncCraftCategoryDetailReq obj7 = new RhinoIntegrationProductionOrderSyncRequest.SyncCraftCategoryDetailReq();
list6.add(obj7);
obj7.setParentBizId("1");
obj7.setBizId("2");
obj7.setName("西服");
obj1.setStyleClassificationDetails(list6);
obj1.setBuyerName("森马");
req.setSyncProductionOrderReq(obj1);
RhinoIntegrationProductionOrderSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
RhinoIntegrationProductionOrderSyncRequest req = new RhinoIntegrationProductionOrderSyncRequest();
RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderReqDomain obj1 = new RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderReqDomain();
obj1.ColorName = "红色";
obj1.OrderNo = "P1212";
obj1.StyleNo = "238952";
obj1.StyleName = "款式名称";
obj1.OrderImage = "data:image/png;";
obj1.StyleClassificationBizId = "1";
List<RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderDetailReqDomain> list3 = new List<RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderDetailReqDomain>();
RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderDetailReqDomain obj4 = new RhinoIntegrationProductionOrderSyncRequest.SyncProductionOrderDetailReqDomain();
list3.Add(obj4);
obj4.Quantity = 100L;
obj4.SizeName = "XL";
obj1.Details= list3;
List<RhinoIntegrationProductionOrderSyncRequest.SyncCraftCategoryDetailReqDomain> list6 = new List<RhinoIntegrationProductionOrderSyncRequest.SyncCraftCategoryDetailReqDomain>();
RhinoIntegrationProductionOrderSyncRequest.SyncCraftCategoryDetailReqDomain obj7 = new RhinoIntegrationProductionOrderSyncRequest.SyncCraftCategoryDetailReqDomain();
list6.Add(obj7);
obj7.ParentBizId = "1";
obj7.BizId = "2";
obj7.Name = "西服";
obj1.StyleClassificationDetails= list6;
obj1.BuyerName = "森马";
req.SyncProductionOrderReq_ = obj1;
RhinoIntegrationProductionOrderSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new RhinoIntegrationProductionOrderSyncRequest;
$sync_production_order_req = new SyncProductionOrderReq;
$sync_production_order_req->color_name="红色";
$sync_production_order_req->order_no="P1212";
$sync_production_order_req->style_no="238952";
$sync_production_order_req->style_name="款式名称";
$sync_production_order_req->order_image="data:image/png;";
$sync_production_order_req->style_classification_biz_id="1";
$details = new SyncProductionOrderDetailReq;
$details->quantity="100";
$details->size_name="XL";
$sync_production_order_req->details = $details;
$style_classification_details = new SyncCraftCategoryDetailReq;
$style_classification_details->parent_biz_id="1";
$style_classification_details->biz_id="2";
$style_classification_details->name="西服";
$sync_production_order_req->style_classification_details = $style_classification_details;
$sync_production_order_req->buyer_name="森马";
$req->setSyncProductionOrderReq(json_encode($sync_production_order_req));
$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=taobao.rhino.integration.production.order.sync' \
-d 'partner_id=apidoc' \
-d 'sign=93F633E6AAB8DADB828D2D9D4720606B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+15%3A26%3A51' \
-d 'v=2.0' \
-d 'sync_production_order_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.RhinoIntegrationProductionOrderSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.sync_production_order_req="数据结构示例JSON格式"
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,"taobao.rhino.integration.production.order.sync");
add_param(pRequest,"sync_production_order_req","数据结构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('taobao.rhino.integration.production.order.sync', {
'sync_production_order_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})