[关闭]
@JackieQu 2018-06-13T15:02:22.000000Z 字数 609 阅读 334

邀请码 作废

跟斌叔学编程


邀请码为队伍满 6 人或支付订单后自动生成

查看我的邀请码

Method and Url Structure

Method Resource URL
GET /account/code/

cURL Example

  1. curl -X GET -H 'Authorization: Token 521b92efb730acd59cf80cc3d6001efae366a2e7' http://localhost:8000/account/code/

JSON Response

  1. {
  2. "pk": 6,
  3. "code": "63990972",
  4. "password": "4055"
  5. }

邀请码登录

Method and Url Structure

Method Resource URL
POST /account/invitation_code_login/

Request and Parameters

Name Description Required Default
code 邀请码 YES
password 密码 YES

Request

  1. {
  2. "code": "63990972",
  3. "password": "4055"
  4. }

cURL Example

  1. curl -X POST -d data{...}
  2. http://127.0.0.1:8000/account/invitation_code_login/

JSON Response

  1. {
  2. "token": "8c724c10b76b37f100401e299215b349de9f272e"
  3. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注