TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest req = new AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest();
AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest.ConfigItemDto obj1 = new AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest.ConfigItemDto();
obj1.setDeviceName("device_0001");
obj1.setIdentifierId("identifier_0001");
obj1.setName("config_1");
obj1.setProductKey("product_001");
obj1.setAppSign("sign_001");
obj1.setTime(1000L);
req.setParamConfigItemDTO(obj1);
AlibabaAlisportsStadiumBanshuDeviceConfigItemResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest req = new AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest();
AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest.ConfigItemDtoDomain obj1 = new AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest.ConfigItemDtoDomain();
obj1.DeviceName = "device_0001";
obj1.IdentifierId = "identifier_0001";
obj1.Name = "config_1";
obj1.ProductKey = "product_001";
obj1.AppSign = "sign_001";
obj1.Time = 1000L;
req.ParamConfigItemDTO_ = obj1;
AlibabaAlisportsStadiumBanshuDeviceConfigItemResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest;
$param_config_item_d_t_o = new ConfigItemDto;
$param_config_item_d_t_o->device_name="device_0001";
$param_config_item_d_t_o->identifier_id="identifier_0001";
$param_config_item_d_t_o->name="config_1";
$param_config_item_d_t_o->product_key="product_001";
$param_config_item_d_t_o->app_sign="sign_001";
$param_config_item_d_t_o->time="1000";
$req->setParamConfigItemDTO(json_encode($param_config_item_d_t_o));
$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.alisports.stadium.banshu.device.config.item' \
-d 'partner_id=apidoc' \
-d 'sign=8F24AB3A4CCE827497F868FE99C4E103' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-25+23%3A58%3A32' \
-d 'v=2.0' \
-d 'param_config_item_d_t_o=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlisportsStadiumBanshuDeviceConfigItemRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_config_item_d_t_o=""
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.alisports.stadium.banshu.device.config.item");
add_param(pRequest,"param_config_item_d_t_o","数据结构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('alibaba.alisports.stadium.banshu.device.config.item', {
'param_config_item_d_t_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})