1.0发布产品接口调用
//http://gw.api.alibaba.com/dev/doc/api.htm?ns=aliexpress.open&n=api.postAeProduct&v=1
接口测试工具
请参照以下相关内容设置接口传递参数(*号为必填)
注意事项:categoryId(类目)(200000392) 与 aeopAeProductPropertys(类目属性) 必须相对应,因为aeopAeProductPropertys 是通过类目接口getAttributesResultByCateId 来获取相应的属性json字符串,通过以下格式来传入参数
[{"attrNameId":"200000043","attrName":null,"attrValueId":"4100","attrValue":null},{"attrNameId":"200000043","attrName":null,"attrValueId":"492","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"200002203","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"100019007","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"7919","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"567","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"47","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"200001061","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"200004100","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"1042","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"115","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"1912","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"571","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"200002202","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"63","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"48","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"200002207","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"89","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"49","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"100019017","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"100014040","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"866","attrValue":null},{"attrNameId":"10","attrName":null,"attrValueId":"90","attrValue":null}]
详细请参考代码 (Api项目实战/产品管理)GetProductPropertys(此方法有待进一步修改todo)
问题保留:产生错误
07004013 |
aeProductPropertys.attrNameId被判定为失效的属性ID, |
有待跟进?(初步想法:因为是直接通过类目Id来获取类目属性,所以可能获取了一些已经失效的属性)
问题答案:此问题是因为 list_box(下拉列表中的选项)只能选中一项的业务逻辑问题,才导致出现以上问题,通过程序进行筛选,将数据以正确的格式,导出到界面上(就可以解决问题了)。