邀请码 作废
跟斌叔学编程
邀请码为队伍满 6 人或支付订单后自动生成
查看我的邀请码
Method and Url Structure
| Method |
Resource URL |
| GET |
/account/code/ |
cURL Example
curl -X GET -H 'Authorization: Token 521b92efb730acd59cf80cc3d6001efae366a2e7' http://localhost:8000/account/code/
JSON Response
{ "pk": 6, "code": "63990972", "password": "4055"}
邀请码登录
Method and Url Structure
| Method |
Resource URL |
| POST |
/account/invitation_code_login/ |
Request and Parameters
| Name |
Description |
Required |
Default |
| code |
邀请码 |
YES |
|
| password |
密码 |
YES |
|
Request
{ "code": "63990972", "password": "4055"}
cURL Example
curl -X POST -d data{...}http://127.0.0.1:8000/account/invitation_code_login/
JSON Response
{ "token": "8c724c10b76b37f100401e299215b349de9f272e"}