TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest req = new AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest();
AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfSessionSearchParam obj1 = new AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfSessionSearchParam();
List<AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfImageInfo> list3 = new ArrayList<AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfImageInfo>();
AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfImageInfo obj4 = new AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfImageInfo();
list3.add(obj4);
obj4.setImage("http://1.jpg");
obj4.setImageId("r567ujhbgt");
obj4.setTick(1234567890L);
obj4.setDeviceId("t678ujhy");
obj1.setImages(list3);
obj1.setRequestId("fty7u8i4rew");
obj1.setPersonId("34ewsd");
obj1.setStartTick(1234567890L);
obj1.setEndTick(1234567890L);
obj1.setPoiId("234ewsd");
obj1.setTenantCode("23we");
obj1.setToken("23we");
req.setParam(obj1);
AlibabaSecurityDeepvisionVisionlogSessionAiotSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest req = new AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest();
AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfSessionSearchParamDomain obj1 = new AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfSessionSearchParamDomain();
List<AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfImageInfoDomain> list3 = new List<AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfImageInfoDomain>();
AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfImageInfoDomain obj4 = new AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest.YtlfImageInfoDomain();
list3.Add(obj4);
obj4.Image = "http://1.jpg";
obj4.ImageId = "r567ujhbgt";
obj4.Tick = 1234567890L;
obj4.DeviceId = "t678ujhy";
obj1.Images= list3;
obj1.RequestId = "fty7u8i4rew";
obj1.PersonId = "34ewsd";
obj1.StartTick = 1234567890L;
obj1.EndTick = 1234567890L;
obj1.PoiId = "234ewsd";
obj1.TenantCode = "23we";
obj1.Token = "23we";
req.Param_ = obj1;
AlibabaSecurityDeepvisionVisionlogSessionAiotSearchResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest;
$param = new YtlfSessionSearchParam;
$images = new YtlfImageInfo;
$images->image="http://1.jpg";
$images->image_id="r567ujhbgt";
$images->tick="1234567890";
$images->device_id="t678ujhy";
$param->images = $images;
$param->request_id="fty7u8i4rew";
$param->person_id="34ewsd";
$param->start_tick="1234567890";
$param->end_tick="1234567890";
$param->poi_id="234ewsd";
$param->tenant_code="23we";
$param->token="23we";
$req->setParam(json_encode($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.security.deepvision.visionlog.session.aiot.search' \
-d 'partner_id=apidoc' \
-d 'sign=91281B6F7D75C7A21A25533701A41612' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-16+11%3A23%3A56' \
-d 'v=2.0' \
-d 'param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSecurityDeepvisionVisionlogSessionAiotSearchRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.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.security.deepvision.visionlog.session.aiot.search");
add_param(pRequest,"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.security.deepvision.visionlog.session.aiot.search', {
'param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})