TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoLogisticscloudIsvCpticketCreateRequest req = new CainiaoLogisticscloudIsvCpticketCreateRequest();
CainiaoLogisticscloudIsvCpticketCreateRequest.TicketOrder obj1 = new CainiaoLogisticscloudIsvCpticketCreateRequest.TicketOrder();
obj1.setSellerId(9854L);
List<CainiaoLogisticscloudIsvCpticketCreateRequest.QuestionInfo> list3 = new ArrayList<CainiaoLogisticscloudIsvCpticketCreateRequest.QuestionInfo>();
CainiaoLogisticscloudIsvCpticketCreateRequest.QuestionInfo obj4 = new CainiaoLogisticscloudIsvCpticketCreateRequest.QuestionInfo();
list3.add(obj4);
obj4.setMailNo("777*********6061");
obj4.setNewMobile("131****3505");
obj4.setAddress("杭州市西湖区西溪首座");
obj4.setNewName("王小二");
obj4.setQuestion("拦截退回");
obj4.setName("李小四");
obj4.setMobile("187****4598");
obj4.setSiteName("杭州西溪一部");
obj4.setQuestionType(20L);
obj4.setNewAddress("上海市阿里中心");
obj1.setQuestionInfoList(list3);
obj1.setCustomerCode("9876");
req.setParam0(obj1);
CainiaoLogisticscloudIsvCpticketCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CainiaoLogisticscloudIsvCpticketCreateRequest req = new CainiaoLogisticscloudIsvCpticketCreateRequest();
CainiaoLogisticscloudIsvCpticketCreateRequest.TicketOrderDomain obj1 = new CainiaoLogisticscloudIsvCpticketCreateRequest.TicketOrderDomain();
obj1.SellerId = 9854L;
List<CainiaoLogisticscloudIsvCpticketCreateRequest.QuestionInfoDomain> list3 = new List<CainiaoLogisticscloudIsvCpticketCreateRequest.QuestionInfoDomain>();
CainiaoLogisticscloudIsvCpticketCreateRequest.QuestionInfoDomain obj4 = new CainiaoLogisticscloudIsvCpticketCreateRequest.QuestionInfoDomain();
list3.Add(obj4);
obj4.MailNo = "777*********6061";
obj4.NewMobile = "131****3505";
obj4.Address = "杭州市西湖区西溪首座";
obj4.NewName = "王小二";
obj4.Question = "拦截退回";
obj4.Name = "李小四";
obj4.Mobile = "187****4598";
obj4.SiteName = "杭州西溪一部";
obj4.QuestionType = 20L;
obj4.NewAddress = "上海市阿里中心";
obj1.QuestionInfoList= list3;
obj1.CustomerCode = "9876";
req.Param0_ = obj1;
CainiaoLogisticscloudIsvCpticketCreateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CainiaoLogisticscloudIsvCpticketCreateRequest;
$param0 = new TicketOrder;
$param0->seller_id="9854";
$question_info_list = new QuestionInfo;
$question_info_list->mail_no="777*********6061";
$question_info_list->new_mobile="131****3505";
$question_info_list->address="杭州市西湖区西溪首座";
$question_info_list->new_name="王小二";
$question_info_list->question="拦截退回";
$question_info_list->name="李小四";
$question_info_list->mobile="187****4598";
$question_info_list->site_name="杭州西溪一部";
$question_info_list->question_type="20";
$question_info_list->new_address="上海市阿里中心";
$param0->question_info_list = $question_info_list;
$param0->customer_code="9876";
$req->setParam0(json_encode($param0));
$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=cainiao.logisticscloud.isv.cpticket.create' \
-d 'partner_id=apidoc' \
-d 'sign=496F79A5C21440EA447C69C6FA5E4FD2' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-26+14%3A24%3A22' \
-d 'v=2.0' \
-d 'param0=Object'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CainiaoLogisticscloudIsvCpticketCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0="Object"
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,"cainiao.logisticscloud.isv.cpticket.create");
add_param(pRequest,"param0","数据结构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('cainiao.logisticscloud.isv.cpticket.create', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})