TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FilmDataThirdPartyIssueOrderRequest req = new FilmDataThirdPartyIssueOrderRequest();
req.setUserId(3714018795L);
req.setPlatform(3L);
req.setLockSeatApplyKey("3714018795_3714018795");
req.setExtUserId("222222222");
req.setExtOrderId("111111111");
req.setTotalPrice(5000L);
req.setParamsString("{\"price_detail\":\"user-3000,other-2000\"}");
FilmDataThirdPartyIssueOrderResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
FilmDataThirdPartyIssueOrderRequest req = new FilmDataThirdPartyIssueOrderRequest();
req.UserId = 3714018795L;
req.Platform = 3L;
req.LockSeatApplyKey = "3714018795_3714018795";
req.ExtUserId = "222222222";
req.ExtOrderId = "111111111";
req.TotalPrice = 5000L;
req.Params = "{\"price_detail\":\"user-3000,other-2000\"}";
FilmDataThirdPartyIssueOrderResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new FilmDataThirdPartyIssueOrderRequest;
$req->setUserId("3714018795");
$req->setPlatform("3");
$req->setLockSeatApplyKey("3714018795_3714018795");
$req->setExtUserId("222222222");
$req->setExtOrderId("111111111");
$req->setTotalPrice("5000");
$req->setParams("{\"price_detail\":\"user-3000,other-2000\"}");
$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.film.data.third.party.issue.order' \
-d 'partner_id=apidoc' \
-d 'sign=98BDD4C90146CB86443756CF635C67D1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-08+05%3A06%3A54' \
-d 'v=2.0' \
-d 'ext_order_id=111111111' \
-d 'ext_user_id=222222222' \
-d 'lock_seat_apply_key=3714018795_3714018795' \
-d 'params=%7B%5C%22price_detail%5C%22%3A%5C%22user-3000%2Cother-2000%5C%22%7D' \
-d 'platform=3' \
-d 'total_price=5000' \
-d 'user_id=3714018795'
# -*- coding: utf-8 -*-
import top.api
req=top.api.FilmDataThirdPartyIssueOrderRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.user_id=3714018795
req.platform=3
req.lock_seat_apply_key="3714018795_3714018795"
req.ext_user_id="222222222"
req.ext_order_id="111111111"
req.total_price=5000
req.params="{\"price_detail\":\"user-3000,other-2000\"}"
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.film.data.third.party.issue.order");
add_param(pRequest,"user_id","3714018795");
add_param(pRequest,"platform","3");
add_param(pRequest,"lock_seat_apply_key","3714018795_3714018795");
add_param(pRequest,"ext_user_id","222222222");
add_param(pRequest,"ext_order_id","111111111");
add_param(pRequest,"total_price","5000");
add_param(pRequest,"params","{\"price_detail\":\"user-3000,other-2000\"}");
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.film.data.third.party.issue.order', {
'user_id':'3714018795',
'platform':'3',
'lock_seat_apply_key':'3714018795_3714018795',
'ext_user_id':'222222222',
'ext_order_id':'111111111',
'total_price':'5000',
'params':'{\"price_detail\":\"user-3000,other-2000\"}'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})