TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest req = new AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest();
AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest.GenerateAuthKeyReq obj1 = new AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest.GenerateAuthKeyReq();
obj1.setUid("1");
obj1.setTest(1L);
obj1.setFunction("face");
obj1.setActivationCode("1");
obj1.setUserDeviceId("1");
obj1.setDeviceId("1");
obj1.setUmidToken("1");
obj1.setUmidType("umid");
obj1.setAppName("123");
req.setParam(obj1);
AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest req = new AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest();
AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest.GenerateAuthKeyReqDomain obj1 = new AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest.GenerateAuthKeyReqDomain();
obj1.Uid = "1";
obj1.Test = 1L;
obj1.Function = "face";
obj1.ActivationCode = "1";
obj1.UserDeviceId = "1";
obj1.DeviceId = "1";
obj1.UmidToken = "1";
obj1.UmidType = "umid";
obj1.AppName = "123";
req.Param_ = obj1;
AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest;
$param = new GenerateAuthKeyReq;
$param->uid="1";
$param->test="1";
$param->function="face";
$param->activation_code="1";
$param->user_device_id="1";
$param->device_id="1";
$param->umid_token="1";
$param->umid_type="umid";
$param->app_name="123";
$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.proxy.devicemanager.getauthkey' \
-d 'partner_id=apidoc' \
-d 'sign=CB8D4D40B26A5106A3B53114EB55DEB7' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-09-22+23%3A03%3A13' \
-d 'v=2.0' \
-d 'param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSecurityDeepvisionProxyDevicemanagerGetauthkeyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param=""
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.proxy.devicemanager.getauthkey");
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.proxy.devicemanager.getauthkey', {
'param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})