[关闭]
@fuyb1986 2016-03-19T05:05:29.000000Z 字数 780 阅读 577

获取用户资金明细

好热闹


获取用户资金明细

Method and URL Structure

Method Resource URL
GET /cmd/?cmd=get_reward_records

Request Parameters

Name Description Required Default
username 用户名 Yes
password 密码 Yes

Request

  1. {
  2. "username":"username",
  3. "password":"password",
  4. }

cURL Example

  1. curl www.haorenao.cn/cmd/?cmd=get_reward_records&username=12345678910&password=123456

JSON Response

Name Description
ret 标识是否成功。ok, 成功; failed, 失败
reason 失败原因,比如:身份验证失败
records 明细列表

records

Name Description
id 记录 ID
commecnt 备注或产生原因,可作为标题显示
record_type 类型: pay,reward,icome,refund,cash
record_type_display 中文名称: 付款,奖赏,收款,退款,提现
amount 金额
create_time 发生时间
  1. {
  2. "ret": "ok",
  3. "reason": "",
  4. "records": [{
  5. "comment": "订单#13261149806185291628#付款",
  6. "record_type": "pay",
  7. "record_type_display": "付款",
  8. "amount": -3.0,
  9. "create_time": "2016-02-03 15:44:18",
  10. "question_title": "",
  11. "answer_id": "-1",
  12. "question_id": "-1"
  13. }, ... ]
  14. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注