TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LarkDeviceProductversionPushRequest req = new LarkDeviceProductversionPushRequest();
LarkDeviceProductversionPushRequest.ProductVersionReq obj1 = new LarkDeviceProductversionPushRequest.ProductVersionReq();
obj1.setVersionDesc("版本描述");
obj1.setProductCode("YZ_POS");
obj1.setForceUpdate(false);
obj1.setVersionName("1.0.0.0");
obj1.setBuildType("release");
obj1.setLinkChannel("mqtt");
obj1.setVersionCode("1.0.0.0");
obj1.setOssPath("http://xxx.zip");
obj1.setOssTag("123456789");
obj1.setSource("mtl");
obj1.setInstallType("1");
obj1.setCreateUser("140595");
obj1.setProductLine("finixx");
req.setProductVersionReq(obj1);
LarkDeviceProductversionPushResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
LarkDeviceProductversionPushRequest req = new LarkDeviceProductversionPushRequest();
LarkDeviceProductversionPushRequest.ProductVersionReqDomain obj1 = new LarkDeviceProductversionPushRequest.ProductVersionReqDomain();
obj1.VersionDesc = "版本描述";
obj1.ProductCode = "YZ_POS";
obj1.ForceUpdate = false;
obj1.VersionName = "1.0.0.0";
obj1.BuildType = "release";
obj1.LinkChannel = "mqtt";
obj1.VersionCode = "1.0.0.0";
obj1.OssPath = "http://xxx.zip";
obj1.OssTag = "123456789";
obj1.Source = "mtl";
obj1.InstallType = "1";
obj1.CreateUser = "140595";
obj1.ProductLine = "finixx";
req.ProductVersionReq_ = obj1;
LarkDeviceProductversionPushResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new LarkDeviceProductversionPushRequest;
$product_version_req = new ProductVersionReq;
$product_version_req->version_desc="版本描述";
$product_version_req->product_code="YZ_POS";
$product_version_req->force_update="false";
$product_version_req->version_name="1.0.0.0";
$product_version_req->build_type="release";
$product_version_req->link_channel="mqtt";
$product_version_req->version_code="1.0.0.0";
$product_version_req->oss_path="http://xxx.zip";
$product_version_req->oss_tag="123456789";
$product_version_req->source="mtl";
$product_version_req->install_type="1";
$product_version_req->create_user="140595";
$product_version_req->product_line="finixx";
$req->setProductVersionReq(json_encode($product_version_req));
$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=taobao.lark.device.productversion.push' \
-d 'partner_id=apidoc' \
-d 'sign=476C82F3DFF867FD7A6CDFA2B072FA6F' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-10-09+03%3A59%3A59' \
-d 'v=2.0' \
-d 'product_version_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.LarkDeviceProductversionPushRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.product_version_req="数据结构示例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,"taobao.lark.device.productversion.push");
add_param(pRequest,"product_version_req","数据结构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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.lark.device.productversion.push', {
'product_version_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})