[关闭]
@JackieQu 2018-09-14T14:44:44.000000Z 字数 1787 阅读 344

数据看板

儿童编程


获取注册、付费用户总数

Method and Url Structure

Method Resource URL
GET /server/userdata/user_count/

cURL Example

  1. curl -X GET -H 'Authorization: Token admin123' -d data{...}
  2. localhost:8000/server/userdata/user_count/

JSON Response

  1. {
  2. "pk": 1,
  3. "register_count": 11,
  4. "payer_count": 1,
  5. "create_time": "2018-09-13T14:13:53.223660"
  6. }

获取注册、付费用户日增数

Method and Url Structure

Method Resource URL
GET /server/userdata/day_increase_count/

cURL Example

  1. curl -X GET -H 'Authorization: Token admin123' -d data{...}
  2. localhost:8000/server/userdata/day_increase_count/?date=2018-6-10
  3. # 不传 date 则默认获取本月数据

JSON Response

  1. {
  2. "1": {
  3. "payer_count": 0,
  4. "register_count": 0
  5. },
  6. "2": {
  7. "payer_count": 0,
  8. "register_count": 0
  9. },
  10. "3": {
  11. "payer_count": 0,
  12. "register_count": 0
  13. },
  14. "4": {
  15. "payer_count": 0,
  16. "register_count": 0
  17. },
  18. "5": {
  19. "payer_count": 0,
  20. "register_count": 0
  21. },
  22. "6": {
  23. "payer_count": 0,
  24. "register_count": 7
  25. },
  26. "7": {
  27. "payer_count": 0,
  28. "register_count": 0
  29. },
  30. "8": {
  31. "payer_count": 0,
  32. "register_count": 0
  33. },
  34. "9": {
  35. "payer_count": 0,
  36. "register_count": 0
  37. },
  38. "10": {
  39. "payer_count": 0,
  40. "register_count": 0
  41. },
  42. "11": {
  43. "payer_count": 0,
  44. "register_count": 0
  45. },
  46. "12": {
  47. "payer_count": 0,
  48. "register_count": 0
  49. },
  50. "13": {
  51. "payer_count": 0,
  52. "register_count": 0
  53. },
  54. "14": {
  55. "payer_count": 0,
  56. "register_count": 0
  57. },
  58. "15": {
  59. "payer_count": 0,
  60. "register_count": 0
  61. },
  62. "16": {
  63. "payer_count": 0,
  64. "register_count": 0
  65. },
  66. "17": {
  67. "payer_count": 0,
  68. "register_count": 0
  69. },
  70. "18": {
  71. "payer_count": 0,
  72. "register_count": 0
  73. },
  74. "19": {
  75. "payer_count": 0,
  76. "register_count": 0
  77. },
  78. "20": {
  79. "payer_count": 0,
  80. "register_count": 0
  81. },
  82. "21": {
  83. "payer_count": 0,
  84. "register_count": 0
  85. },
  86. "22": {
  87. "payer_count": 1,
  88. "register_count": 0
  89. },
  90. "23": {
  91. "payer_count": 0,
  92. "register_count": 0
  93. },
  94. "24": {
  95. "payer_count": 0,
  96. "register_count": 0
  97. },
  98. "25": {
  99. "payer_count": 0,
  100. "register_count": 0
  101. },
  102. "26": {
  103. "payer_count": 0,
  104. "register_count": 0
  105. },
  106. "27": {
  107. "payer_count": 0,
  108. "register_count": 0
  109. },
  110. "28": {
  111. "payer_count": 0,
  112. "register_count": 0
  113. },
  114. "29": {
  115. "payer_count": 0,
  116. "register_count": 1
  117. },
  118. "30": {
  119. "payer_count": 0,
  120. "register_count": 0
  121. }
  122. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注