TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlimiWorkorderProgressNotifyRequest req = new AlimiWorkorderProgressNotifyRequest();
AlimiWorkorderProgressNotifyRequest.WorkOrderNotifyDxmCommand obj1 = new AlimiWorkorderProgressNotifyRequest.WorkOrderNotifyDxmCommand();
obj1.setAsyncCode("d064f3519426dcd30114b900431fc044");
obj1.setGmtTime("2025-03-20 00:00:00");
obj1.setInputParams("{\"itemCode\":\"KLSJDFKLJSDF\"}");
obj1.setCurrentNode("createNode");
obj1.setCompleted(false);
obj1.setWorkOrderId("4323213123");
req.setWorkOrderNotifyDxmCommand(obj1);
AlimiWorkorderProgressNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlimiWorkorderProgressNotifyRequest req = new AlimiWorkorderProgressNotifyRequest();
AlimiWorkorderProgressNotifyRequest.WorkOrderNotifyDxmCommandDomain obj1 = new AlimiWorkorderProgressNotifyRequest.WorkOrderNotifyDxmCommandDomain();
obj1.AsyncCode = "d064f3519426dcd30114b900431fc044";
obj1.GmtTime = "2025-03-20 00:00:00";
obj1.InputParams = "{\"itemCode\":\"KLSJDFKLJSDF\"}";
obj1.CurrentNode = "createNode";
obj1.Completed = false;
obj1.WorkOrderId = "4323213123";
req.WorkOrderNotifyDxmCommand_ = obj1;
AlimiWorkorderProgressNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlimiWorkorderProgressNotifyRequest;
$work_order_notify_dxm_command = new WorkOrderNotifyDxmCommand;
$work_order_notify_dxm_command->async_code="d064f3519426dcd30114b900431fc044";
$work_order_notify_dxm_command->gmt_time="2025-03-20 00:00:00";
$work_order_notify_dxm_command->input_params="{\"itemCode\":\"KLSJDFKLJSDF\"}";
$work_order_notify_dxm_command->current_node="createNode";
$work_order_notify_dxm_command->completed="false";
$work_order_notify_dxm_command->work_order_id="4323213123";
$req->setWorkOrderNotifyDxmCommand(json_encode($work_order_notify_dxm_command));
$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.alimi.workorder.progress.notify' \
-d 'partner_id=apidoc' \
-d 'sign=9D7C91C6F5C9EF5C95E3141FA90F46CD' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+17%3A00%3A45' \
-d 'v=2.0' \
-d 'work_order_notify_dxm_command=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlimiWorkorderProgressNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.work_order_notify_dxm_command="数据结构示例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.alimi.workorder.progress.notify");
add_param(pRequest,"work_order_notify_dxm_command","数据结构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.alimi.workorder.progress.notify', {
'work_order_notify_dxm_command':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})