说明
广告列表接口
请求地址
| 环境 | 请求地址 |
|---|---|
| 测试环境 | https://m.umxnt.com/api/ad/lists |
| 正式环境 |
请求参数
| 参数 | 类型 | 是否必填 | 最大长度 | 描述 |
|---|---|---|---|---|
| token | string | 是 | 令牌 | |
| page | int | 否 | 第几页默认 第一页 | |
| id | string | 否 | 广告id | |
| number | int | 否 | 返回数量模式10条 | |
| user_id | int | 否 | 代理商业务员id默认自己的id | |
| status | int | 订单状态,1-成功,2-取消或失败,3-已退款,4 -关闭默认是-1,具体可查支付状态接口 | ||
| time_start | string | 否 | 开始时间:2017-08-24 13:32:30 | |
| time_end | string | 否 | 结束时间:2017-08-24 13:32:30 |
返回值示例 成功请求示例:
{ "status": 1, "data": [ { "id": 16, "ad_name": "贷款", "position_id": "1", "position_name": "支付宝成功", "store_user_name": "戴明康门店", "store_user_id": "1", "url": "https://isv.ccmknt.com", "user_id": 1, "image_a_url": "https://m.umxnt.com/upload/picture/2017/09/30/161015_535.jpg", "image_b_url": "https://m.umxnt.com/upload/picture/2017/09/30/161015_535.jpg", "image_c_url": "https://m.umxnt.com/upload/picture/2017/09/30/161015_535.jpg", "status": 1, "clicks": "0", "time_start": "2017-06-05 00:00:00", "time_end": "2017-06-05 23:59:00", "created_at": "2017-11-08 11:47:26", "updated_at": "2017-11-08 00:00:00" }, { "id": 15, "ad_name": "信用卡", "position_id": "1+2", "position_name": "支付宝成功,支付宝失败页", "store_user_name": "戴明康门店,有梦想下面的门店", "store_user_id": "1", "url": "https://isv.ccmknt.com", "user_id": 1, "image_a_url": "https://m.umxnt.com/upload/picture/2017/09/30/161015_535.jpg", "image_b_url": "https://m.umxnt.com/upload/picture/2017/09/30/161015_535.jpg", "image_c_url": "https://m.umxnt.com/upload/picture/2017/09/30/161015_535.jpg", "status": 1, "clicks": "0", "time_start": "2017-06-05 00:00:00", "time_end": "2017-06-05 23:59:00", "created_at": "2017-11-07 11:45:10", "updated_at": "2017-11-08 00:00:00" } ] }
返回参数说明
| 参数 | 类型 | 是否必填 | 最大长度 | 描述 |
|---|---|---|---|---|
| position_name | string | 是 | 位置范围名称 | |
| position_id | string | 是 | 位置类型id 添加时需要此参数 | |
| store_user_name | string | 是 | 投放在此用户名下 | |
| time_start | string | 是 | 广告开始时间 | |
| time_end | string | 是 | 广告结束时间 | |
| clicks | string | 是 | 点击数 | |
| status | string | 是 | 状态 1开启 2-关闭 | |
| url | string | 是 | 跳转链接 | |
| image_a_url | string | 是 | 图片链接 |
{ "msg":"无效参数", "status":0 }