TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IndustryDajianRpCalenderQueryRequest req = new IndustryDajianRpCalenderQueryRequest();
IndustryDajianRpCalenderQueryRequest.QueryModifyCalendarRequest obj1 = new IndustryDajianRpCalenderQueryRequest.QueryModifyCalendarRequest();
obj1.setSellerId(123L);
obj1.setBizActionTypeCode("identify");
obj1.setReceiverDistrictCode("360902");
obj1.setReceiverDistrictName("余杭街道");
req.setQueryModifyCalendarRequest(obj1);
IndustryDajianRpCalenderQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
IndustryDajianRpCalenderQueryRequest req = new IndustryDajianRpCalenderQueryRequest();
IndustryDajianRpCalenderQueryRequest.QueryModifyCalendarRequestDomain obj1 = new IndustryDajianRpCalenderQueryRequest.QueryModifyCalendarRequestDomain();
obj1.SellerId = 123L;
obj1.BizActionTypeCode = "identify";
obj1.ReceiverDistrictCode = "360902";
obj1.ReceiverDistrictName = "余杭街道";
req.QueryModifyCalendarRequest_ = obj1;
IndustryDajianRpCalenderQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new IndustryDajianRpCalenderQueryRequest;
$query_modify_calendar_request = new QueryModifyCalendarRequest;
$query_modify_calendar_request->seller_id="123";
$query_modify_calendar_request->biz_action_type_code="identify";
$query_modify_calendar_request->receiver_district_code="360902";
$query_modify_calendar_request->receiver_district_name="余杭街道";
$req->setQueryModifyCalendarRequest(json_encode($query_modify_calendar_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.calender.query' \
-d 'partner_id=apidoc' \
-d 'sign=C9E946B329B8624F036022BCBE420BF3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-04+17%3A07%3A48' \
-d 'v=2.0' \
-d 'query_modify_calendar_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.IndustryDajianRpCalenderQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.query_modify_calendar_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.calender.query");
add_param(pRequest,"query_modify_calendar_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.calender.query', {
'query_modify_calendar_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})