You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/README.md

1.3 KiB

API文档


基本介绍

开发API服务地址

http://120.27.155.180:3000/

邮箱/密码25012034@qq.com/11111111

Applications

  • iOS Application Id:
f2ac514ff9c4630d9509a5f361362eb52b28e36396bd92cefcdafe8dee1055c5

Secret:

77c88ef325b2c557d8d7699694882ae73876bf1fe18554c119865bddb364c0d8
  • Android

Application Id:

1be5ac17e050d515a11b99bc16c445ab114c8f3513e59175b106bba1f746ea5e

Secret:

ec0bb068cf24a15389a6753da6d52c36c764a13d9913a97d14be6c9c6925255e

API接口


用户注册(通过其他平台)

POST accounts/remote_register

示例

curl -X POST \
-d "email=2123233122@qq.com" \
-d "password=djs_D_00001" \
-d "phone=18816365620" \
-d "platform=forge" \
http://localhost:3000/api/accounts/remote_register  | jq

请求参数说明:

email(requires): 用户邮箱

phone(requires): 手机号

password(requires): 密码

platform(optional):用户来源的相关平台,取值范围['educoder', 'trustie', 'forge'],

返回参数说明:

status: 响应状态码0:请求成功,-1: 请求失败

message: 响应说明

id: 用户id

token: 用户对应token唯一

返回值

{
  "status": 0,
  "message": "success",
  "user": {
    "id": 36400,
    "token": "8c87a80d9cfacc92fcb2451845104f35119eda96"
  }
}