alibaba.idle.trendy.handbook.insert (isv新增图鉴)

isv新增图鉴

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
trendy_handbook_isv_insert_param TrendyHandbookIsvInsertParam 必须 入参
  • └ entity_introduction
  • String
  • 可选
  • 这是一个测试图鉴
  • 图鉴描述
  • entity_attributes
  • TrendyHandbookAttributeDTO []
  • 可选
  • [{"attrId":9056,"attrValue":"SSR"}]
  • 属性列表
  • └ attr_id
  • Number
  • 可选
  • 9056
  • 属性ID
  • └ attr_value
  • String
  • 可选
  • SSR
  • 属性值
  • └ target_id
  • Number
  • 必须
  • 1
  • 数据ID,外部服务商系统的ID- 做幂等用的
  • └ entity_name
  • String
  • 必须
  • 测试图鉴名称
  • 图鉴名称
  • └ entity_type
  • String
  • 必须
  • STYLE
  • 图鉴类型,STYLE 款式 SERIES 系列
  • └ entity_images
  • String []
  • 必须
  • ["https://img.alicdn.com/imgextra/i3/O1CN01KHkRMr28QccsO8Ag9_!!4611686018427387639-0-fleamarket.jpg"]
  • 图片列表
  • └ entity_sub_type
  • String
  • 必须
  • TCG卡牌
  • 子类型
  • entity_relations
  • TrendyHandbookRelationDTO []
  • 可选
  • [{"relaEntityId":2,"relaEntityType":"IP"}]
  • 上游信息列表
  • └ rela_entity_id
  • Number
  • 可选
  • 2
  • 关联闲鱼图鉴ID
  • └ rela_entity_type
  • String
  • 可选
  • IP
  • 关联闲鱼图鉴类型
  • └ source
  • String
  • 必须
  • test_source
  • 业务来源
  • └ entity_cate_id
  • Number
  • 可选
  • 126860375
  • 类目ID

响应参数

名称 类型 示例值 描述
data TrendyHandbookIsvInsertRes 响应
  • └ result
  • Boolean
  • true
  • 新增结果,true为新增成功
  • └ entity_id
  • Number
  • 1
  • 闲鱼图鉴ID
api_success Boolean true 请求结果
api_error_code String 错误码 错误码
api_error_msg String 错误描述 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleTrendyHandbookInsertRequest req = new AlibabaIdleTrendyHandbookInsertRequest();
AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookIsvInsertParam obj1 = new AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookIsvInsertParam();
obj1.setEntityIntroduction("这是一个测试图鉴");
List<AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookAttributeDTO> list3 = new ArrayList<AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookAttributeDTO>();
AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookAttributeDTO obj4 = new AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookAttributeDTO();
list3.add(obj4);
obj4.setAttrId(9056L);
obj4.setAttrValue("SSR");
obj1.setEntityAttributes(list3);
obj1.setTargetId(1L);
obj1.setEntityName("测试图鉴名称");
obj1.setEntityType("STYLE");
obj1.setEntityImages(""https://img.alicdn.com/imgextra/i3/O1CN01KHkRMr28QccsO8Ag9_!!4611686018427387639-0-fleamarket.jpg"");
obj1.setEntitySubType("TCG卡牌");
List<AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookRelationDTO> list6 = new ArrayList<AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookRelationDTO>();
AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookRelationDTO obj7 = new AlibabaIdleTrendyHandbookInsertRequest.TrendyHandbookRelationDTO();
list6.add(obj7);
obj7.setRelaEntityId(2L);
obj7.setRelaEntityType("IP");
obj1.setEntityRelations(list6);
obj1.setSource("test_source");
obj1.setEntityCateId(126860375L);
req.setTrendyHandbookIsvInsertParam(obj1);
AlibabaIdleTrendyHandbookInsertResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_trendy_handbook_insert_response>
    <data>
        <result>true</result>
        <entity_id>1</entity_id>
    </data>
    <api_success>true</api_success>
    <api_error_code>错误码</api_error_code>
    <api_error_msg>错误描述</api_error_msg>
</alibaba_idle_trendy_handbook_insert_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

返回
顶部