[关闭]
@JackieQu 2018-06-15T11:59:03.000000Z 字数 1277 阅读 248

广告用户数据分析

儿童编程


创建记录

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

  1. {
  2. "ad": "4",
  3. "operate": "2"
  4. }
  5. # operate 可选数值:
  6. # 进入APP:"0"
  7. # 发起支付:"1"
  8. # 完成支付:"2"
  9. # (支付仅针对于斌叔编程活动,购买钻石不用添加记录)

cURL Example

  1. curl -X POST -H 'Authorization: Token 521b92efb730acd59cf80cc3d6001efae366a2e7' -d data{...}
  2. localhost:8000/server/userinfo/ad_data_create/

JSON Response

  1. {
  2. "status": 0,
  3. "message": ""
  4. }

查看记录

Method and Url Structure

Method Resource URL
GET /server/userinfo/ad_data_list/

cURL Example

  1. curl -X GET -H 'Authorization: Token 521b92efb730acd59cf80cc3d6001efae366a2e7' localhost:8000/server/userinfo/ad_data_list/

Request

  1. # 根据条件筛选,默认获取全部
  2. localhost:8000/server/userinfo/ad_data_list/?ad=1&operate=0
  3. operate 可传参数:
  4. # 进入APP:"0"
  5. # 发起支付:"1"
  6. # 完成支付:"2"

JSON Response

  1. {
  2. "count": 3,
  3. "next": null,
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 3,
  8. "userinfo": {
  9. "owner": "mmmm1",
  10. "name": "dfadf"
  11. },
  12. "ad": "4",
  13. "operate_type": 2,
  14. "operate_display": "完成支付",
  15. "create_time": "2018-06-14T18:23:19.524581"
  16. },
  17. {
  18. "pk": 2,
  19. "userinfo": {
  20. "owner": "mmmm1",
  21. "name": "dfadf"
  22. },
  23. "ad": null,
  24. "operate_type": 0,
  25. "operate_display": "进入APP",
  26. "create_time": "2018-06-14T18:12:19.649333"
  27. },
  28. {
  29. "pk": 1,
  30. "userinfo": {
  31. "owner": "tester001",
  32. "name": "001tester"
  33. },
  34. "ad": "1",
  35. "operate_type": 0,
  36. "operate_display": "进入APP",
  37. "create_time": "2018-06-14T17:53:37.207683"
  38. }
  39. ]
  40. }
  41. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注