文档中心 > API类目 > 天猫汽车

tmall.aliauto.meta.receive (汽车说明书元数据上传)

天猫汽车对外提供的汽车资源元数据上传接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
command ResourceMetaCommand 可选 元数据参数集
  • └ summary
  • String
  • 可选
  • 保养/加油/充电-发动机舱开启方式
  • 摘要
  • └ resource_id
  • Number
  • 可选
  • 111
  • 资源id
  • └ out_series_id
  • Number
  • 可选
  • 132222
  • 外部车系id
  • └ group_id
  • Number
  • 可选
  • 11
  • 分组id
  • └ out_model_id
  • Number
  • 可选
  • 222111
  • 外部车型id
  • └ extension_field
  • String
  • 可选
  • {}
  • 扩展字段
  • └ title
  • String
  • 可选
  • 发动机舱开启方式
  • 标题
  • └ from_source
  • String
  • 可选
  • dongchedi
  • 来源
  • └ resource_type
  • String
  • 可选
  • manual_video
  • 资源类型
  • └ resource_options
  • String
  • 可选
  • {"categoryName":"保养/加油/充电","positionName":"发动机舱开启方式","positionDesc":"发动机舱开启方式视频讲解","ossKey":"v0201e9b0000br3mt1vm1hf7cc5aiac0","videoSize":20971520,"coverUrlList":["xxxx1.jpg","xxxx2.jpg"]}
  • 资源附属信息

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • └ data
  • String
  • 1234
  • data
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ error_message
  • String
  • demo
  • 错误信息
  • └ error_code
  • String
  • "isv.invalid-parameter"
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
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());

响应示例

  • XML示例
  • JSON示例
<tmall_aliauto_meta_receive_response>
    <result>
        <data>1234</data>
        <success>false</success>
        <error_message>demo</error_message>
        <error_code>&quot;isv.invalid-parameter&quot;</error_code>
    </result>
</tmall_aliauto_meta_receive_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部