TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiMevLivecenterQuerydevicemacRequest req = new AlibabaDamaiMevLivecenterQuerydevicemacRequest();
AlibabaDamaiMevLivecenterQuerydevicemacRequest.DeviceMacQueryParam obj1 = new AlibabaDamaiMevLivecenterQuerydevicemacRequest.DeviceMacQueryParam();
obj1.setDeviceId("9c910937-9ed4-45b4-a646-1f549a1c104c");
obj1.setDeviceAlias("d5_MZ80_1231610963");
obj1.setMac("D4:H7:L9:DS:09");
obj1.setDeviceName("验票闸机");
obj1.setUtdId("alibaba-edge181");
obj1.setMachineMac("D3:D3:D3");
req.setDeviceMacQueryParam(obj1);
AlibabaDamaiMevLivecenterQuerydevicemacResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaDamaiMevLivecenterQuerydevicemacRequest req = new AlibabaDamaiMevLivecenterQuerydevicemacRequest();
AlibabaDamaiMevLivecenterQuerydevicemacRequest.DeviceMacQueryParamDomain obj1 = new AlibabaDamaiMevLivecenterQuerydevicemacRequest.DeviceMacQueryParamDomain();
obj1.DeviceId = "9c910937-9ed4-45b4-a646-1f549a1c104c";
obj1.DeviceAlias = "d5_MZ80_1231610963";
obj1.Mac = "D4:H7:L9:DS:09";
obj1.DeviceName = "验票闸机";
obj1.UtdId = "alibaba-edge181";
obj1.MachineMac = "D3:D3:D3";
req.DeviceMacQueryParam_ = obj1;
AlibabaDamaiMevLivecenterQuerydevicemacResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaDamaiMevLivecenterQuerydevicemacRequest;
$device_mac_query_param = new DeviceMacQueryParam;
$device_mac_query_param->device_id="9c910937-9ed4-45b4-a646-1f549a1c104c";
$device_mac_query_param->device_alias="d5_MZ80_1231610963";
$device_mac_query_param->mac="D4:H7:L9:DS:09";
$device_mac_query_param->device_name="验票闸机";
$device_mac_query_param->utd_id="alibaba-edge181";
$device_mac_query_param->machine_mac="D3:D3:D3";
$req->setDeviceMacQueryParam(json_encode($device_mac_query_param));
$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.damai.mev.livecenter.querydevicemac' \
-d 'partner_id=apidoc' \
-d 'sign=0EA2532E780FA04FF63F280D67E20A03' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-07+03%3A46%3A36' \
-d 'v=2.0' \
-d 'device_mac_query_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaDamaiMevLivecenterQuerydevicemacRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.device_mac_query_param="数据结构示例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,"alibaba.damai.mev.livecenter.querydevicemac");
add_param(pRequest,"device_mac_query_param","数据结构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.damai.mev.livecenter.querydevicemac', {
'device_mac_query_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})