注册账号
描述
注册一个账号
使用须知
开发前,请仔细阅读开发指南。
- POST请求头
{"Authorization": "Bearer YOUR_APIKEY"}
YOUR_APIKEY请阅读开发指南了解。
接口URL
POST - /openapi/v1/account/register
请求参数
| 参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
|---|---|---|---|---|
| mobile | 18911111112 | String | 否 | 手机号码,手机和邮箱必填一个 |
| country_code | 86 | String | 否 | 手机区号,填写手机时需填手机区号,不填默认为86 |
| username | 张三 | String | 是 | 用户名 |
| password | 123456 | String | 否 | 密码,不填默认123456 |
| 123456789@qq.com | String | 否 | 邮箱,手机和邮箱必填一个 | |
| account | user_wsm46h56838 | String | 否 | 账号,支持中文,不填系统将自动生成 |
请求示例
{
"mobile": "15812345678",
"country_code":"86",
"username": "张三",
"password": "123456",
"email": "2334567899@qq.com",
"account": "user_wsm46h56838"
}
响应参数
| 参数名 | 示例值 | 参数类型 | 参数描述 |
|---|---|---|---|
| uid | 73452 | Number | 账号uid |
| account | user_wsm46h56838 | String | 账户 |
| country_code | 86 | String | 手机区号 |
| mobile | 15812345678 | String | 手机号码 |
| username | 张三 | String | 用户名 |
| 2334567899@qq.com | String | 电子邮箱 | |
| user_id | 5a70ee08a0416de96518a811 | String | 用户id |
| corp_id | 542e26219a26a93bfbccdf61 | String | 当前用户的团队id |
响应数据样例
{
"uid": 73452,
"account": "user_wsm46h56838",
"country_code": "86",
"mobile": "15812345678",
"username": "张三",
"email": "2334567899@qq.com",
"user_id": "5a70ee08a0416de96518a811",
"corp_id": "542e26219a26a93bfbccdf61"
}
