TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IndustryDajianRpAppointModifyRequest req = new IndustryDajianRpAppointModifyRequest();
IndustryDajianRpAppointModifyRequest.RefundModifyAppointTimeRequest obj1 = new IndustryDajianRpAppointModifyRequest.RefundModifyAppointTimeRequest();
obj1.setSellerId(123L);
obj1.setBizActionType("identify");
obj1.setDoorDate(StringUtils.parseDateTime("2024-03-13 00:00:00"));
obj1.setExtendFields("{\"key\":\"value\"}");
obj1.setDoorSlice("day");
obj1.setOperatorId("10010");
obj1.setOperatorName("测试账号");
obj1.setRefundId(1234L);
obj1.setReceiverProvince("江苏省");
obj1.setReceiverCity("南京市");
obj1.setReceiverDistrict("江宁区");
obj1.setReceiverAddress("*********");
obj1.setReceiverDivisionId(310107017L);
obj1.setRefundCollaborativeCode("345");
obj1.setReceiverTown("麒麟街道");
obj1.setSliceStartTime("09:00");
obj1.setSliceEndTime("21:00");
req.setRefundModifyAppointTimeRequest(obj1);
IndustryDajianRpAppointModifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
IndustryDajianRpAppointModifyRequest req = new IndustryDajianRpAppointModifyRequest();
IndustryDajianRpAppointModifyRequest.RefundModifyAppointTimeRequestDomain obj1 = new IndustryDajianRpAppointModifyRequest.RefundModifyAppointTimeRequestDomain();
obj1.SellerId = 123L;
obj1.BizActionType = "identify";
obj1.DoorDate = DateTime.Parse(2024-03-13 00:00:00");
obj1.ExtendFields = "{\"key\":\"value\"}";
obj1.DoorSlice = "day";
obj1.OperatorId = "10010";
obj1.OperatorName = "测试账号";
obj1.RefundId = 1234L;
obj1.ReceiverProvince = "江苏省";
obj1.ReceiverCity = "南京市";
obj1.ReceiverDistrict = "江宁区";
obj1.ReceiverAddress = "*********";
obj1.ReceiverDivisionId = 310107017L;
obj1.RefundCollaborativeCode = "345";
obj1.ReceiverTown = "麒麟街道";
obj1.SliceStartTime = "09:00";
obj1.SliceEndTime = "21:00";
req.RefundModifyAppointTimeRequest_ = obj1;
IndustryDajianRpAppointModifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new IndustryDajianRpAppointModifyRequest;
$refund_modify_appoint_time_request = new RefundModifyAppointTimeRequest;
$refund_modify_appoint_time_request->seller_id="123";
$refund_modify_appoint_time_request->biz_action_type="identify";
$refund_modify_appoint_time_request->door_date="2024-03-13 00:00:00";
$refund_modify_appoint_time_request->extend_fields="{\"key\":\"value\"}";
$refund_modify_appoint_time_request->door_slice="day";
$refund_modify_appoint_time_request->operator_id="10010";
$refund_modify_appoint_time_request->operator_name="测试账号";
$refund_modify_appoint_time_request->refund_id="1234";
$refund_modify_appoint_time_request->receiver_province="江苏省";
$refund_modify_appoint_time_request->receiver_city="南京市";
$refund_modify_appoint_time_request->receiver_district="江宁区";
$refund_modify_appoint_time_request->receiver_address="*********";
$refund_modify_appoint_time_request->receiver_division_id="310107017";
$refund_modify_appoint_time_request->refund_collaborative_code="345";
$refund_modify_appoint_time_request->receiver_town="麒麟街道";
$refund_modify_appoint_time_request->slice_start_time="09:00";
$refund_modify_appoint_time_request->slice_end_time="21:00";
$req->setRefundModifyAppointTimeRequest(json_encode($refund_modify_appoint_time_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=taobao.industry.dajian.rp.appoint.modify' \
-d 'partner_id=apidoc' \
-d 'sign=E0F468055BB51279D570DDBA2F558A38' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-04+15%3A50%3A08' \
-d 'v=2.0' \
-d 'refund_modify_appoint_time_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.IndustryDajianRpAppointModifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.refund_modify_appoint_time_request="数据结构示例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,"taobao.industry.dajian.rp.appoint.modify");
add_param(pRequest,"refund_modify_appoint_time_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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.industry.dajian.rp.appoint.modify', {
'refund_modify_appoint_time_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})