当前位置: 首页 > news >正文

taobao.itemprops.get( 获取标准商品类目属性 )

¥开放平台基础API不需用户授权
通过设置必要的参数,来获取商品后台标准类目属性,以及这些属性里面详细的属性值prop_values。
公共参数
请求地址:
HTTP地址
http://gw.api.taobao.com/router/rest
公共请求参数:
在这里插入图片描述
公共响应参数:
在这里插入图片描述
请求参数
在这里插入图片描述
点击获取key和secret
请求示例
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
ItempropsGetRequest req = new ItempropsGetRequest();
req.setFields(“pid,name,must,multi,prop_values”);
req.setCid(44343L);
req.setPid(3232L);
req.setParentPid(4834L);
req.setIsKeyProp(true);
req.setIsSaleProp(true);
req.setIsColorProp(true);
req.setIsEnumProp(true);
req.setIsInputProp(true);
req.setIsItemProp(true);
req.setDatetime(StringUtils.parseDateTime(“2010-01-01 00:00:00”));
req.setChildPath(“3932:13221;2113:2345”);
req.setType(1L);
req.setAttrKeys(“”);
ItempropsGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例
<itemprops_get_response>
<last_modified>2010-01-01 00:00:00</last_modified>
<item_props>
<item_prop>
20000
<parent_pid>10000</parent_pid>
<parent_vid>24455</parent_vid>
颜色
<is_key_prop>true</is_key_prop>
<is_sale_prop>true</is_sale_prop>
<is_color_prop>true</is_color_prop>
<is_enum_prop>true</is_enum_prop>
<is_input_prop>true</is_input_prop>
<is_item_prop>true</is_item_prop>
true
true
normal
<child_template>SomeTemplate</child_template>
<sort_order>1</sort_order>
<is_allow_alias>true</is_allow_alias>
<prop_values>
<prop_value>
50010538
1627207
3232483
军绿色
<prop_name>颜色</prop_name>
normal
<name_alias>军绿色</name_alias>
<is_parent>true</is_parent>
<sort_order>0</sort_order>


<attr_value>2342</attr_value>
<attr_key>1234</attr_key>


</prop_value>
</prop_values>


<attr_key>1234</attr_key>
<attr_value>2342</attr_value>


<is_taosir>true</is_taosir>
<taosir_do>
0
2
<std_unit_list>
<std_unit>
<attr_key>1234</attr_key>
<attr_value>2342</attr_value>
</std_unit>
</std_unit_list>
<expr_el_list>
<expr_el>
0

<is_show_label>true</is_show_label>
<is_label>false</is_label>
<is_input>false</is_input>
</expr_el>
</expr_el_list>
</taosir_do>
<is_material>true</is_material>
<material_do>

<item_materia_value_d_o>
<need_content_number>true</need_content_number>
棉(纯棉)
</item_materia_value_d_o>

</material_do>
</item_prop>
</item_props>
</itemprops_get_response>
异常示例
<error_response>
50
Remote service error
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>

http://www.lryc.cn/news/30981.html

相关文章:

  • QT配置安卓环境(保姆级教程)
  • 【uni-app教程】八、UniAPP Vuex 状态管理
  • 同花顺测试面经(30min)
  • C++-简述#ifdef、#else、#endif和#ifndef的作用
  • VictoriaMetrics 集群部署
  • 【基于感知损失的无监督泛锐化】
  • 在vercel上用streamlit部署网站
  • 华为OD机试题 - 斗地主(JavaScript)| 含思路
  • i.MX8MP平台开发分享(clock篇)-计算clock速度相关的内核API
  • 实验4 设计模式实验3
  • CNN基础
  • 【UEFI基础】UEFI事件介绍
  • Markdown 语法速查表
  • 【C++】-- 类型转换
  • 汇编基础语法和指令总结+案例(用32位汇编实现插入排序)
  • C++多线程--线程安全的单例模式
  • (Android-RTC-9)PeerConnectionFactory
  • Vector - CAPL - 定时器函数和使用
  • 【嵌入式C】常见问题
  • [神经网络]Transfomer架构
  • C++之多态 虚函数表
  • AI_Papers周刊:第四期
  • A Simple Framework for Contrastive Learning of Visual Representations阅读笔记
  • mac安装开发工具:clipy、iterm2、go、brew、mysql、redis、wget等
  • DJ1-1 计算机网络和因特网
  • [1.3.3]计算机系统概述——系统调用
  • 【Java开发】JUC进阶 03:读写锁、阻塞队列、同步队列
  • Fragment中获取Activity的一点点建议
  • Java Math类
  • Javascript -- 加载时间线 正则表达式