TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoIntegrationProductionHangerOutRequest req = new RhinoIntegrationProductionHangerOutRequest();
RhinoIntegrationProductionHangerOutRequest.HangerOutReq obj1 = new RhinoIntegrationProductionHangerOutRequest.HangerOutReq();
obj1.setOrderNo("ORDER01");
obj1.setWorkerNo("W01");
obj1.setOrderTraceCode("ORDERH01");
obj1.setPositionCode("line1-02");
obj1.setTraceCode("H001");
obj1.setSizeName("XL");
obj1.setProcessName("查衣");
obj1.setProcessEndTime(1733995074000L);
obj1.setSeqId("2024121601");
req.setHangerOutReq(obj1);
RhinoIntegrationProductionHangerOutResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
RhinoIntegrationProductionHangerOutRequest req = new RhinoIntegrationProductionHangerOutRequest();
RhinoIntegrationProductionHangerOutRequest.HangerOutReqDomain obj1 = new RhinoIntegrationProductionHangerOutRequest.HangerOutReqDomain();
obj1.OrderNo = "ORDER01";
obj1.WorkerNo = "W01";
obj1.OrderTraceCode = "ORDERH01";
obj1.PositionCode = "line1-02";
obj1.TraceCode = "H001";
obj1.SizeName = "XL";
obj1.ProcessName = "查衣";
obj1.ProcessEndTime = 1733995074000L;
obj1.SeqId = "2024121601";
req.HangerOutReq_ = obj1;
RhinoIntegrationProductionHangerOutResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new RhinoIntegrationProductionHangerOutRequest;
$hanger_out_req = new HangerOutReq;
$hanger_out_req->order_no="ORDER01";
$hanger_out_req->worker_no="W01";
$hanger_out_req->order_trace_code="ORDERH01";
$hanger_out_req->position_code="line1-02";
$hanger_out_req->trace_code="H001";
$hanger_out_req->size_name="XL";
$hanger_out_req->process_name="查衣";
$hanger_out_req->process_end_time="1733995074000";
$hanger_out_req->seq_id="2024121601";
$req->setHangerOutReq(json_encode($hanger_out_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.hanger.out' \
-d 'partner_id=apidoc' \
-d 'sign=78286054C1333598E2D3098B5C4A58AF' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+15%3A24%3A13' \
-d 'v=2.0' \
-d 'hanger_out_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.RhinoIntegrationProductionHangerOutRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.hanger_out_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.hanger.out");
add_param(pRequest,"hanger_out_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.hanger.out', {
'hanger_out_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})