后台新增接口 - coupons-management/doc GitHub Wiki
path: statistic/spider
method: POST
param:
{"beginTime":1560418315275,"endTime":1560591115275,"range":1,"spiderId":0}
参数说明: range 时间跨度 1=日,2=周,3=月
返回json:
[{"date":"2019-06-14","incrementCoupon":29,"incrementStore":0,"totalCoupon":29,"updateStore":1,"validCoupon":0}]
path: storeOperation/getPageInSpider
method: POST
param:
{"beginTime":1560422029173,"endTime":1560594829173,"pageNumber":1,"pageSize":10,"range":1,"spiderId":0}
参数说明: range 范围 1=有新增优惠券的商家,2=无新增优惠券的商家,3=新增的商家
返回json:
{"list":[{"country":"US","couponUpdateTime":"2019-06-14 15:49:01","createTime":"2019-06-08 15:49:00","id":14170,"logo":"https://sgi.offerscdn.net/i/zdcs-merchants/07nyDX5OO0iQp0ivdDd4nyj.h90.w170.flpad.v22.bffffff.png","name":"Verified","scrapySiteCount":0,"scrapyType":"Offers.com","showSiteNameList":[],"siteUsedCount":0,"spiderSiteNameList":["offer"],"updateTime":"","validCouponsCount":"29/29","website":"www.slamcity.com"}],"pageNumber":1,"pageSize":10,"totalCount":1,"totalPage":1}
path: coupon/updateSort
method: POST
**param: **
{"storeId":1,"sortList":[{"couponId":1,"sort":1}] ]}
参数说明: couponId:优惠券ID , sort:排序
path: showSiteCoupon/getCouponListWithSort
method: POST
param: {"storeId":27768}
参数说明: storeId:商家ID
返回json:
[
{
"clickCount": 0,
"code": "",
"couponType": "DEAL",
"createTime": 1560859680000,
"currentTitle": "Enjoy 10% Off With Any Purchase",
"description": "Details: Take advantage of this special offer for 10% off your order.",
"expired": false,
"expiryTime": 4102243200000,
"id": 49367,
"inType": "0",
"joinTime": 1560862976000,
"manual": false,
"manualSort": 1,
"mapId": 374,
"sourceTile": "10% off any order"
},
{
"clickCount": 0,
"code": "",
"couponType": "DEAL",
"createTime": 1560859680000,
"currentTitle": "40% Off On Your Any Order",
"description": "Details: Save on Chinese Dresses, Cheongsam, Qipao, Chinese Shirts & Chinese Jackets.",
"expired": false,
"expiryTime": 4102243200000,
"id": 49368,
"inType": "0",
"joinTime": 1560862976000,
"manual": false,
"manualSort": 2,
"mapId": 375,
"sourceTile": "Up to 40% off Chinese Apparel"
}
]
path: statistic/site
method: POST
**param: **
{"beginTime":1560418315275,"endTime":1560591115275,"range":3,"siteId":1}
参数说明: range 时间跨度 1=日,2=周,3=月
返回json:
[{"date":"2019-06-24~2019-07-24","incrementCoupon":34,"incrementStore":3,"totalCoupon":34,"updateStore":3,"validCoupon":34}]
path: storeOperation/getPageInSite
method: POST
param:
{"beginTime":1560422029173,"endTime":1560594829173,"pageNumber":1,"pageSize":10,"range":1,"siteId":1}
参数说明: range 范围 1=有新增优惠券的商家,2=无新增优惠券的商家,3=新增的商家
返回json:
{
"list": [
{
"approval": "1",
"country": "US",
"couponUpdateTime": "2019-06-28 00:46:36",
"createTime": "2019-06-28 00:46:34",
"id": 63681,
"logo": "https://sgi.offerscdn.net/i/zdcs-merchants/01lkkNz8D8IInhKxo1ypv8v.h90.w170.flpad.v19.bffffff.png",
"name": "9FIVE",
"scrapySiteCount": 0,
"scrapyType": "Men's Clothing",
"showSiteNameList": [
"绿站",
"橙站"
],
"siteUsedCount": 0,
"spiderSiteNameList": [
"offer"
],
"storeId": 63681,
"updateTime": "2019-06-28 00:46:36",
"validCouponsCount": "10/10",
"website": "9five.com"
},
{
"approval": "1",
"country": "US",
"couponUpdateTime": "2019-06-28 00:46:36",
"createTime": "2019-06-28 00:46:36",
"id": 63682,
"logo": "https://sgi.offerscdn.net/i/zdcs-merchants/05BUzYRDiBvvTVAzBd7APVp.h90.w170.flpad.v19.bffffff.png",
"name": "ZZPerformance",
"scrapySiteCount": 0,
"scrapyType": "Auto Services",
"showSiteNameList": [
"绿站",
"橙站"
],
"siteUsedCount": 0,
"spiderSiteNameList": [
"offer"
],
"storeId": 63682,
"updateTime": "",
"validCouponsCount": "7/7",
"website": "zzperformance.com"
},
{
"approval": "1",
"country": "US",
"couponUpdateTime": "2019-06-28 00:46:58",
"createTime": "2019-06-28 00:46:56",
"id": 63690,
"logo": "https://sgi.offerscdn.net/i/zdcs-merchants/06FOUP5UcG1oqvAt2nxpu6N.h90.w170.flpad.v6.bffffff.png",
"name": "RYU",
"scrapySiteCount": 0,
"scrapyType": "Men's Clothing",
"showSiteNameList": [
"绿站",
"橙站"
],
"siteUsedCount": 0,
"spiderSiteNameList": [
"offer"
],
"storeId": 63690,
"updateTime": "2019-06-28 00:46:58",
"validCouponsCount": "15/15",
"website": "ryu.com"
}
],
"pageNumber": 1,
"pageSize": 10,
"totalCount": 3,
"totalPage": 1
}