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.
Jasder
6f5f8ce247
|
5 years ago | |
---|---|---|
.ipynb_checkpoints | 5 years ago | |
app | 5 years ago | |
bin | 6 years ago | |
config | 5 years ago | |
db | 5 years ago | |
lib | 5 years ago | |
public | 5 years ago | |
spec | 5 years ago | |
test | 6 years ago | |
tmp | 6 years ago | |
vendor | 6 years ago | |
warn | 6 years ago | |
.gitignore | 5 years ago | |
.merge_file_a17580 | 6 years ago | |
Gemfile | 5 years ago | |
README.md | 5 years ago | |
Rakefile | 6 years ago | |
bootstrap-datetimepicker.css | 5 years ago | |
config.ru | 6 years ago | |
dump.rdb | 5 years ago |
README.md
API文档
基本介绍
开发API服务地址:
邮箱/密码: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"
}
}