TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlimiWorkorderPermissionNotifyRequest req = new AlimiWorkorderPermissionNotifyRequest();
AlimiWorkorderPermissionNotifyRequest.AuthorizeNotifyCommand obj1 = new AlimiWorkorderPermissionNotifyRequest.AuthorizeNotifyCommand();
obj1.setSellerId("23123");
obj1.setNotifyType("limit");
obj1.setWorkOrderType("urgeDeliver");
obj1.setRemainingLimit(3L);
obj1.setInvalidTime("2025-04-20 00:00:00");
req.setAuthorizeNotifyCommand(obj1);
AlimiWorkorderPermissionNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlimiWorkorderPermissionNotifyRequest req = new AlimiWorkorderPermissionNotifyRequest();
AlimiWorkorderPermissionNotifyRequest.AuthorizeNotifyCommandDomain obj1 = new AlimiWorkorderPermissionNotifyRequest.AuthorizeNotifyCommandDomain();
obj1.SellerId = "23123";
obj1.NotifyType = "limit";
obj1.WorkOrderType = "urgeDeliver";
obj1.RemainingLimit = 3L;
obj1.InvalidTime = "2025-04-20 00:00:00";
req.AuthorizeNotifyCommand_ = obj1;
AlimiWorkorderPermissionNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlimiWorkorderPermissionNotifyRequest;
$authorize_notify_command = new AuthorizeNotifyCommand;
$authorize_notify_command->seller_id="23123";
$authorize_notify_command->notify_type="limit";
$authorize_notify_command->work_order_type="urgeDeliver";
$authorize_notify_command->remaining_limit="3";
$authorize_notify_command->invalid_time="2025-04-20 00:00:00";
$req->setAuthorizeNotifyCommand(json_encode($authorize_notify_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.permission.notify' \
-d 'partner_id=apidoc' \
-d 'sign=C53E12BFE2719DC891AC869EBAADC526' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+13%3A59%3A32' \
-d 'v=2.0' \
-d 'authorize_notify_command=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlimiWorkorderPermissionNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.authorize_notify_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.permission.notify");
add_param(pRequest,"authorize_notify_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.permission.notify', {
'authorize_notify_command':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})