广告用户数据分析
儿童编程
创建记录
Method and Url Structure
| Method |
Resource URL |
| POST |
/server/userinfo/ad_data_create/ |
Request and Parameters
| Name |
Description |
Required |
Default |
| ad |
广告渠道 |
YES |
|
| operate |
用户操作 |
YES |
|
Request
{ "ad": "4", "operate": "2"}# operate 可选数值:# 进入APP:"0"# 发起支付:"1"# 完成支付:"2"# (支付仅针对于斌叔编程活动,购买钻石不用添加记录)
cURL Example
curl -X POST -H 'Authorization: Token 521b92efb730acd59cf80cc3d6001efae366a2e7' -d data{...}localhost:8000/server/userinfo/ad_data_create/
JSON Response
{ "status": 0, "message": ""}
查看记录
Method and Url Structure
| Method |
Resource URL |
| GET |
/server/userinfo/ad_data_list/ |
cURL Example
curl -X GET -H 'Authorization: Token 521b92efb730acd59cf80cc3d6001efae366a2e7' localhost:8000/server/userinfo/ad_data_list/
Request
# 根据条件筛选,默认获取全部localhost:8000/server/userinfo/ad_data_list/?ad=1&operate=0operate 可传参数:# 进入APP:"0"# 发起支付:"1"# 完成支付:"2"
JSON Response
{ "count": 3, "next": null, "previous": null, "results": [ { "pk": 3, "userinfo": { "owner": "mmmm1", "name": "dfadf" }, "ad": "4", "operate_type": 2, "operate_display": "完成支付", "create_time": "2018-06-14T18:23:19.524581" }, { "pk": 2, "userinfo": { "owner": "mmmm1", "name": "dfadf" }, "ad": null, "operate_type": 0, "operate_display": "进入APP", "create_time": "2018-06-14T18:12:19.649333" }, { "pk": 1, "userinfo": { "owner": "tester001", "name": "001tester" }, "ad": "1", "operate_type": 0, "operate_display": "进入APP", "create_time": "2018-06-14T17:53:37.207683" } ]}}