TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscRightDecisionsendRequest req = new AlibabaAlscRightDecisionsendRequest();
AlibabaAlscRightDecisionsendRequest.DecisionSendTicketTopReq obj1 = new AlibabaAlscRightDecisionsendRequest.DecisionSendTicketTopReq();
obj1.setRightActList("{ "actCode": "xxx", "rightId": 123 },{ "actCode": "yyy", "rightId": 456 }");
obj1.setSceneCode("mTawvU4GJV3fCwIW30QIiw ==");
obj1.setActCodes(""uxqbd0w1wZ/q8MKKBXDTSB0b3QEoleSUBuGGu5eW","uxqbd0w1wZ/q8MKKBXDTSB0b3QEoleSUBuGGu5eW"");
obj1.setRequestId("uuid");
obj1.setBizCode("ISV-XXX");
obj1.setAlipayId("2088111111111111");
req.setReq(obj1);
AlibabaAlscRightDecisionsendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscRightDecisionsendRequest req = new AlibabaAlscRightDecisionsendRequest();
AlibabaAlscRightDecisionsendRequest.DecisionSendTicketTopReqDomain obj1 = new AlibabaAlscRightDecisionsendRequest.DecisionSendTicketTopReqDomain();
obj1.RightActList = "{ "actCode": "xxx", "rightId": 123 },{ "actCode": "yyy", "rightId": 456 }";
obj1.SceneCode = "mTawvU4GJV3fCwIW30QIiw ==";
obj1.ActCodes = ""uxqbd0w1wZ/q8MKKBXDTSB0b3QEoleSUBuGGu5eW","uxqbd0w1wZ/q8MKKBXDTSB0b3QEoleSUBuGGu5eW"";
obj1.RequestId = "uuid";
obj1.BizCode = "ISV-XXX";
obj1.AlipayId = "2088111111111111";
req.Req_ = obj1;
AlibabaAlscRightDecisionsendResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscRightDecisionsendRequest;
$req = new DecisionSendTicketTopReq;
$req->right_act_list="[{ \"actCode\": \"xxx\", \"rightId\": 123 },{ \"actCode\": \"yyy\", \"rightId\": 456 }]";
$req->scene_code="mTawvU4GJV3fCwIW30QIiw ==";
$req->act_codes="[\"uxqbd0w1wZ/q8MKKBXDTSB0b3QEoleSUBuGGu5eW\",\"uxqbd0w1wZ/q8MKKBXDTSB0b3QEoleSUBuGGu5eW\"]";
$req->request_id="uuid";
$req->biz_code="ISV-XXX";
$req->alipay_id="2088111111111111";
$req->setReq(json_encode($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=alibaba.alsc.right.decisionsend' \
-d 'partner_id=apidoc' \
-d 'sign=130CF90530B07FDADA3B70456C7DDD88' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-19+15%3A49%3A22' \
-d 'v=2.0' \
-d 'req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscRightDecisionsendRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.req=""
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,"alibaba.alsc.right.decisionsend");
add_param(pRequest,"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('alibaba.alsc.right.decisionsend', {
'req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})