TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIbWorkcoreWuyeGetlocationparkRequest req = new AlibabaIbWorkcoreWuyeGetlocationparkRequest();
AlibabaIbWorkcoreWuyeGetlocationparkRequest.WorkBenchContext obj1 = new AlibabaIbWorkcoreWuyeGetlocationparkRequest.WorkBenchContext();
obj1.setCampusId(10009L);
req.setWorkBenchContext(obj1);
req.setCityCode("3301");
req.setLongitude("119.6357420");
req.setLatitude("29.1107670");
AlibabaIbWorkcoreWuyeGetlocationparkResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIbWorkcoreWuyeGetlocationparkRequest req = new AlibabaIbWorkcoreWuyeGetlocationparkRequest();
AlibabaIbWorkcoreWuyeGetlocationparkRequest.WorkBenchContextDomain obj1 = new AlibabaIbWorkcoreWuyeGetlocationparkRequest.WorkBenchContextDomain();
obj1.CampusId = 10009L;
req.WorkBenchContext_ = obj1;
req.CityCode = "3301";
req.Longitude = "119.6357420";
req.Latitude = "29.1107670";
AlibabaIbWorkcoreWuyeGetlocationparkResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIbWorkcoreWuyeGetlocationparkRequest;
$work_bench_context = new WorkBenchContext;
$work_bench_context->campus_id="10009";
$req->setWorkBenchContext(json_encode($work_bench_context));
$req->setCityCode("3301");
$req->setLongitude("119.6357420");
$req->setLatitude("29.1107670");
$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=alibaba.ib.workcore.wuye.getlocationpark' \
-d 'partner_id=apidoc' \
-d 'sign=DF753B5792E44B3566F7DE6288EA65EC' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+15%3A52%3A04' \
-d 'v=2.0' \
-d 'city_code=3301' \
-d 'latitude=29.1107670' \
-d 'longitude=119.6357420' \
-d 'work_bench_context=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIbWorkcoreWuyeGetlocationparkRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.work_bench_context=""
req.city_code="3301"
req.longitude="119.6357420"
req.latitude="29.1107670"
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,"alibaba.ib.workcore.wuye.getlocationpark");
add_param(pRequest,"work_bench_context","数据结构JSON示例");
add_param(pRequest,"city_code","3301");
add_param(pRequest,"longitude","119.6357420");
add_param(pRequest,"latitude","29.1107670");
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('alibaba.ib.workcore.wuye.getlocationpark', {
'work_bench_context':'数据结构JSON示例',
'city_code':'3301',
'longitude':'119.6357420',
'latitude':'29.1107670'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})