[关闭]
@JackieQu 2018-06-06T19:06:54.000000Z 字数 730 阅读 275

钻石记录

儿童编程


获取钻石记录

Method and Url Structure

Method Resource URL
GET /userinfo/diamond_records/

Request and Parameters

Name Description Required Default
diamond 钻石类型 NO
record 记录类型 NO

Requ

  1. 可不传,自由搭配组合
  2. diamond 可传参数:
  3. 蓝钻记录:blue_diamond
  4. 红钻记录:red_diamond
  5. record 可传参数:
  6. 学习奖励(蓝):learn_reward
  7. 分享奖励(蓝/红):share_reward 邀请注册是红钻
  8. 游戏获得(蓝):lottery_reward
  9. 游戏使用(蓝):lottery_consume
  10. 充值(红):top_up
  11. 签到(蓝):signin
  12. 解锁(红):unlock

cURL Example

  1. curl -X GET -H 'Authorization: Token tester001' -d data{...}
  2. 127.0.0.1:8000/program_face2face/userinfo/diamond_records/?diamond=red_diamond&record=top_up

JSON Response

  1. {
  2. "count": 1,
  3. "next": null,
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 15,
  8. "owner": "o-Iae4g9R20Q",
  9. "amount": 10,
  10. "remake": "充值",
  11. "record_type": "top_up",
  12. "record_display": "充值",
  13. "diamond_type": "red_diamond",
  14. "diamond_display": "红钻"
  15. }
  16. ]
  17. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注