TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAliautoMetaReceiveRequest req = new TmallAliautoMetaReceiveRequest();
TmallAliautoMetaReceiveRequest.ResourceMetaCommand obj1 = new TmallAliautoMetaReceiveRequest.ResourceMetaCommand();
obj1.setSummary("保养/加油/充电-发动机舱开启方式");
obj1.setResourceId(111L);
obj1.setOutSeriesId(132222L);
obj1.setGroupId(11L);
obj1.setOutModelId(222111L);
obj1.setExtensionField("{}");
obj1.setTitle("发动机舱开启方式");
obj1.setFromSource("dongchedi");
obj1.setResourceType("manual_video");
obj1.setResourceOptions("{\"categoryName\":\"保养/加油/充电\",\"positionName\":\"发动机舱开启方式\",\"positionDesc\":\"发动机舱开启方式视频讲解\",\"ossKey\":\"v0201e9b0000br3mt1vm1hf7cc5aiac0\",\"videoSize\":20971520,\"coverUrlList\":[\"xxxx1.jpg\",\"xxxx2.jpg\"]}");
req.setCommand(obj1);
TmallAliautoMetaReceiveResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAliautoMetaReceiveRequest req = new TmallAliautoMetaReceiveRequest();
TmallAliautoMetaReceiveRequest.ResourceMetaCommandDomain obj1 = new TmallAliautoMetaReceiveRequest.ResourceMetaCommandDomain();
obj1.Summary = "保养/加油/充电-发动机舱开启方式";
obj1.ResourceId = 111L;
obj1.OutSeriesId = 132222L;
obj1.GroupId = 11L;
obj1.OutModelId = 222111L;
obj1.ExtensionField = "{}";
obj1.Title = "发动机舱开启方式";
obj1.FromSource = "dongchedi";
obj1.ResourceType = "manual_video";
obj1.ResourceOptions = "{\"categoryName\":\"保养/加油/充电\",\"positionName\":\"发动机舱开启方式\",\"positionDesc\":\"发动机舱开启方式视频讲解\",\"ossKey\":\"v0201e9b0000br3mt1vm1hf7cc5aiac0\",\"videoSize\":20971520,\"coverUrlList\":[\"xxxx1.jpg\",\"xxxx2.jpg\"]}";
req.Command_ = obj1;
TmallAliautoMetaReceiveResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAliautoMetaReceiveRequest;
$command = new ResourceMetaCommand;
$command->summary="保养/加油/充电-发动机舱开启方式";
$command->resource_id="111";
$command->out_series_id="132222";
$command->group_id="11";
$command->out_model_id="222111";
$command->extension_field="{}";
$command->title="发动机舱开启方式";
$command->from_source="dongchedi";
$command->resource_type="manual_video";
$command->resource_options="{\"categoryName\":\"保养/加油/充电\",\"positionName\":\"发动机舱开启方式\",\"positionDesc\":\"发动机舱开启方式视频讲解\",\"ossKey\":\"v0201e9b0000br3mt1vm1hf7cc5aiac0\",\"videoSize\":20971520,\"coverUrlList\":[\"xxxx1.jpg\",\"xxxx2.jpg\"]}";
$req->setCommand(json_encode($command));
$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=tmall.aliauto.meta.receive' \
-d 'partner_id=apidoc' \
-d 'sign=D9587207B7204A72D34620CA48340538' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+22%3A59%3A24' \
-d 'v=2.0' \
-d 'command=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAliautoMetaReceiveRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.command=""
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,"tmall.aliauto.meta.receive");
add_param(pRequest,"command","数据结构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('tmall.aliauto.meta.receive', {
'command':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})