TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest req = new AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest();
AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest.WorkBenchContext obj1 = new AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest.WorkBenchContext();
obj1.setEagleEyeTraceId("aaabasfdfga1111");
obj1.setCompanyId(100001L);
obj1.setSystemId("sys1244");
obj1.setCampusCode("xixi");
obj1.setIp("192.168.0.1");
obj1.setCampusId(100001L);
obj1.setSecurityCode("aaa");
obj1.setLanguage("zh");
obj1.setAppCode("abc");
obj1.setUserName("昭云");
obj1.setUserId(11111L);
req.setWorkBenchContext(obj1);
req.setUuid("uuid");
req.setStatus(true);
AlibabaCampusDeviceOpenapiUpdatedevicerunstatusResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest req = new AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest();
AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest.WorkBenchContextDomain obj1 = new AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest.WorkBenchContextDomain();
obj1.EagleEyeTraceId = "aaabasfdfga1111";
obj1.CompanyId = 100001L;
obj1.SystemId = "sys1244";
obj1.CampusCode = "xixi";
obj1.Ip = "192.168.0.1";
obj1.CampusId = 100001L;
obj1.SecurityCode = "aaa";
obj1.Language = "zh";
obj1.AppCode = "abc";
obj1.UserName = "昭云";
obj1.UserId = 11111L;
req.WorkBenchContext_ = obj1;
req.Uuid = "uuid";
req.Status = true;
AlibabaCampusDeviceOpenapiUpdatedevicerunstatusResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest;
$work_bench_context = new WorkBenchContext;
$work_bench_context->eagle_eye_trace_id="aaabasfdfga1111";
$work_bench_context->company_id="100001";
$work_bench_context->system_id="sys1244";
$work_bench_context->campus_code="xixi";
$work_bench_context->ip="192.168.0.1";
$work_bench_context->campus_id="100001";
$work_bench_context->security_code="aaa";
$work_bench_context->language="zh";
$work_bench_context->app_code="abc";
$work_bench_context->user_name="昭云";
$work_bench_context->user_id="11111";
$req->setWorkBenchContext(json_encode($work_bench_context));
$req->setUuid("uuid");
$req->setStatus("true");
$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.campus.device.openapi.updatedevicerunstatus' \
-d 'partner_id=apidoc' \
-d 'sign=4E29151A3755675D657E7AF3ADE65C3C' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-25+20%3A53%3A42' \
-d 'v=2.0' \
-d 'status=true' \
-d 'uuid=uuid' \
-d 'work_bench_context=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaCampusDeviceOpenapiUpdatedevicerunstatusRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.work_bench_context="数据结构示例JSON格式"
req.uuid="uuid"
req.status=true
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.campus.device.openapi.updatedevicerunstatus");
add_param(pRequest,"work_bench_context","数据结构JSON示例");
add_param(pRequest,"uuid","uuid");
add_param(pRequest,"status","true");
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.campus.device.openapi.updatedevicerunstatus', {
'work_bench_context':'数据结构JSON示例',
'uuid':'uuid',
'status':'true'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})