[关闭]
@JackieQu 2018-05-24T17:08:17.000000Z 字数 387 阅读 219

分享

儿童编程


分享得钻石

Method and Url Structure

Method Resource URL
POST /share/share_record/

cURL Example

  1. curl -X POST -H 'Authorization: Token tester001' -d data{...}
  2. http://127.0.0.1:8000/program_face2face/share/share_record/

Request and Parameters

Name Description Required Default
share_type 分享类型 YES

Request

  1. {
  2. "share_type": "revise" // "study"
  3. }

JSON Response

  1. {
  2. "message": "分享成功",
  3. "diamond": 5
  4. }
  5. # 错误信息
  6. {
  7. "status": -4,
  8. "message": "每天只能获取一次分享奖励"
  9. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注