TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoIotTicketSpMaintainVtwoCreateRequest req = new CainiaoIotTicketSpMaintainVtwoCreateRequest();
CainiaoIotTicketSpMaintainVtwoCreateRequest.MakeMaintainPlanV2TopRequest obj1 = new CainiaoIotTicketSpMaintainVtwoCreateRequest.MakeMaintainPlanV2TopRequest();
List<CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequest> list3 = new ArrayList<CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequest>();
CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequest obj4 = new CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequest();
list3.add(obj4);
obj4.setItemCode("3241");
obj4.setPayRole("merchant");
obj1.setIotMaintainPlanItemList(list3);
obj1.setProblemTypeList("42");
obj1.setOtherFee("100.21");
obj1.setProblemCauseList("23");
obj1.setOperatorPhone("13211111113");
obj1.setOperatorName("张三");
obj1.setSpCode("testSpErp");
obj1.setFeature("{\"备注\":\"扩展信息\"}");
obj1.setEventTypeList("342");
obj1.setFeeRemark("人工费用");
obj1.setWarrantyType("under_warranty");
obj1.setPayPictureUrl("https://www.pay.picture.com");
obj1.setOperatorId("32323");
obj1.setLaborExpense("500");
obj1.setTicketId(123413L);
req.setMakeMaintainPlanTopRequest(obj1);
CainiaoIotTicketSpMaintainVtwoCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CainiaoIotTicketSpMaintainVtwoCreateRequest req = new CainiaoIotTicketSpMaintainVtwoCreateRequest();
CainiaoIotTicketSpMaintainVtwoCreateRequest.MakeMaintainPlanV2TopRequestDomain obj1 = new CainiaoIotTicketSpMaintainVtwoCreateRequest.MakeMaintainPlanV2TopRequestDomain();
List<CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequestDomain> list3 = new List<CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequestDomain>();
CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequestDomain obj4 = new CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequestDomain();
list3.Add(obj4);
obj4.ItemCode = "3241";
obj4.PayRole = "merchant";
obj1.IotMaintainPlanItemList= list3;
obj1.ProblemTypeList = "42";
obj1.OtherFee = "100.21";
obj1.ProblemCauseList = "23";
obj1.OperatorPhone = "13211111113";
obj1.OperatorName = "张三";
obj1.SpCode = "testSpErp";
obj1.Feature = "{\"备注\":\"扩展信息\"}";
obj1.EventTypeList = "342";
obj1.FeeRemark = "人工费用";
obj1.WarrantyType = "under_warranty";
obj1.PayPictureUrl = "https://www.pay.picture.com";
obj1.OperatorId = "32323";
obj1.LaborExpense = "500";
obj1.TicketId = 123413L;
req.MakeMaintainPlanTopRequest_ = obj1;
CainiaoIotTicketSpMaintainVtwoCreateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CainiaoIotTicketSpMaintainVtwoCreateRequest;
$make_maintain_plan_top_request = new MakeMaintainPlanV2TopRequest;
$iot_maintain_plan_item_list = new IotMaintainPlanItemTopRequest;
$iot_maintain_plan_item_list->item_code="3241";
$iot_maintain_plan_item_list->pay_role="merchant";
$make_maintain_plan_top_request->iot_maintain_plan_item_list = $iot_maintain_plan_item_list;
$make_maintain_plan_top_request->problem_type_list="42";
$make_maintain_plan_top_request->other_fee="100.21";
$make_maintain_plan_top_request->problem_cause_list="23";
$make_maintain_plan_top_request->operator_phone="13211111113";
$make_maintain_plan_top_request->operator_name="张三";
$make_maintain_plan_top_request->sp_code="testSpErp";
$make_maintain_plan_top_request->feature="{\"备注\":\"扩展信息\"}";
$make_maintain_plan_top_request->event_type_list="342";
$make_maintain_plan_top_request->fee_remark="人工费用";
$make_maintain_plan_top_request->warranty_type="under_warranty";
$make_maintain_plan_top_request->pay_picture_url="https://www.pay.picture.com";
$make_maintain_plan_top_request->operator_id="32323";
$make_maintain_plan_top_request->labor_expense="500";
$make_maintain_plan_top_request->ticket_id="123413";
$req->setMakeMaintainPlanTopRequest(json_encode($make_maintain_plan_top_request));
$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.iot.ticket.sp.maintain.vtwo.create' \
-d 'partner_id=apidoc' \
-d 'sign=C236130B9F9A7FC4471BD90F39C5B977' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-05-01+00%3A09%3A11' \
-d 'v=2.0' \
-d 'make_maintain_plan_top_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CainiaoIotTicketSpMaintainVtwoCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.make_maintain_plan_top_request=""
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.iot.ticket.sp.maintain.vtwo.create");
add_param(pRequest,"make_maintain_plan_top_request","数据结构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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('cainiao.iot.ticket.sp.maintain.vtwo.create', {
'make_maintain_plan_top_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})