TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripTicketUbrcmsSyncRequest req = new AlitripTicketUbrcmsSyncRequest();
AlitripTicketUbrcmsSyncRequest.UbrCmsParam obj1 = new AlitripTicketUbrcmsSyncRequest.UbrCmsParam();
obj1.setActive(1L);
obj1.setRenewFliggyProductId("6787987999");
obj1.setEncryptMsg("ABCDSFFG");
obj1.setUbrProductName("2021尊享成人批次1");
obj1.setUbrSkuId("USBTPSPAQ4ToQ1");
obj1.setRenewTicketCategory(0L);
obj1.setRenewUbrSkuId("USBTPSPAQ98787");
obj1.setRenewMemberCardId(1L);
obj1.setRenewFliggySkuId("475898");
obj1.setTicketCategory(0L);
obj1.setMemberCardId(1L);
obj1.setId(1L);
obj1.setRenewProductName("2022尊享成人批次1");
req.setUbrCmsParam(obj1);
AlitripTicketUbrcmsSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripTicketUbrcmsSyncRequest req = new AlitripTicketUbrcmsSyncRequest();
AlitripTicketUbrcmsSyncRequest.UbrCmsParamDomain obj1 = new AlitripTicketUbrcmsSyncRequest.UbrCmsParamDomain();
obj1.Active = 1L;
obj1.RenewFliggyProductId = "6787987999";
obj1.EncryptMsg = "ABCDSFFG";
obj1.UbrProductName = "2021尊享成人批次1";
obj1.UbrSkuId = "USBTPSPAQ4ToQ1";
obj1.RenewTicketCategory = 0L;
obj1.RenewUbrSkuId = "USBTPSPAQ98787";
obj1.RenewMemberCardId = 1L;
obj1.RenewFliggySkuId = "475898";
obj1.TicketCategory = 0L;
obj1.MemberCardId = 1L;
obj1.Id = 1L;
obj1.RenewProductName = "2022尊享成人批次1";
req.UbrCmsParam_ = obj1;
AlitripTicketUbrcmsSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripTicketUbrcmsSyncRequest;
$ubr_cms_param = new UbrCmsParam;
$ubr_cms_param->active="1";
$ubr_cms_param->renew_fliggy_product_id="6787987999";
$ubr_cms_param->encrypt_msg="ABCDSFFG";
$ubr_cms_param->ubr_product_name="2021尊享成人批次1";
$ubr_cms_param->ubr_sku_id="USBTPSPAQ4ToQ1";
$ubr_cms_param->renew_ticket_category="0";
$ubr_cms_param->renew_ubr_sku_id="USBTPSPAQ98787";
$ubr_cms_param->renew_member_card_id="1";
$ubr_cms_param->renew_fliggy_sku_id="475898";
$ubr_cms_param->ticket_category="0";
$ubr_cms_param->member_card_id="1";
$ubr_cms_param->id="1";
$ubr_cms_param->renew_product_name="2022尊享成人批次1";
$req->setUbrCmsParam(json_encode($ubr_cms_param));
$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=alitrip.ticket.ubrcms.sync' \
-d 'partner_id=apidoc' \
-d 'sign=28E2AA90555664F399496D60E96ED048' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-12-05+03%3A13%3A39' \
-d 'v=2.0' \
-d 'ubr_cms_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripTicketUbrcmsSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ubr_cms_param="数据结构示例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,"alitrip.ticket.ubrcms.sync");
add_param(pRequest,"ubr_cms_param","数据结构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('alitrip.ticket.ubrcms.sync', {
'ubr_cms_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})