根据类目id和宝贝描述规范化打标类型获取该类目可用的宝贝描述模块中的锚点
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
type | Number | 必须 | 0 | 宝贝模板类型是人工打标还是自动打标:人工打标为1,自动打标为0.人工和自动打标为-1.(最小值:-1,最大值:1) | |
cat_id | Number | 必须 | 50010158 | 对应类目编号 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
total_results | Number | 1 | 返回的宝贝描述模板结果数目 |
anchor_modules | IdsModule [] | 宝贝描述规范化可使用打标模块的锚点信息 | |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); ItemAnchorGetRequest req = new ItemAnchorGetRequest(); req.setType(0L); req.setCatId(50010158L); ItemAnchorGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 | < item_anchor_get_response > < total_results >1</ total_results > < anchor_modules > < ids_module > < name >商品尺码表</ name > < id >1</ id > < type >1</ type > </ ids_module > </ anchor_modules > </ item_anchor_get_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.error-get-ids-module | 系统错误,获取宝贝描述锚点信息失败! | 请稍候重试或联系管理员。 |