论坛 RESTful Api 接口
用户注册
接口地址: https://3yya.com/u/{rel_key}/bbs/app/users
请求方式: post
请求参数:
参数名 | 类型 | 必填 | 描述 |
---|---|---|---|
username | string | 是 | 用户名。 |
password | string | 是 | 密码。 |
返回参数:
参数名 | 类型 | 描述 |
---|---|---|
token | string | 登录凭证。 |
JSON 返回示例:
{
"token": "ca8fee4830fa11ecab59001a7dda7111"
}
错误码:
错误码 | 描述 |
---|---|
2001 | 用户名已存在。 |
2002 | 用户名必须为6至12位。 |
2003 | 密码为必须6至12位。 |