查询无条件单品优惠活动列表
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
page_no | Number | 必须 | 1 | 页码。 | |
page_size | Number | 必须 | 20 | 每页记录数,最大支持50 。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
total_count | Number | 40 | 记录总条数。 |
item_promotion_list | ItemPromotion [] | MjsPromotion | 只包含活动的主要信息,如activity_id,name,description,start_time,end_time,participate_range。优惠的其他详细信息,请通过taobao.promotionmisc.item.activity.get获取。 |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); PromotionmiscItemActivityListGetRequest req = new PromotionmiscItemActivityListGetRequest(); req.setPageNo(1L); req.setPageSize(20L); PromotionmiscItemActivityListGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 | < promotionmisc_item_activity_list_get_response > < total_count >40</ total_count > < item_promotion_list > < item_promotion > < activity_id >35089326</ activity_id > < name >八月优惠季</ name > < description >减钱(单位是分):500</ description > < participate_range >0</ participate_range > < start_time >2013-08-01 00:00:00</ start_time > < end_time >2013-08-05 00:00:00</ end_time > </ item_promotion > </ item_promotion_list > </ promotionmisc_item_activity_list_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 > |
错误码 | 错误描述 | 解决方案 |
---|