简要描述:
- 注册新用户
方法名称:
- register
请求JSON:
{
"account_id": "hm01",
"account_password": "123456",
"re_account_password": "123456",
"link_man": "hm",
"mobile": 123456,
"tele": 123456,
"name": "lxy",
"email": "123456@qq.com",
"address": "城中村"
}
响应JSON:
成功:
{
"ask": "Success",
"message": "Success",
"result": {
"api_key": "cc6391310046690662144b40765fd9d5cc1d2f7210cbca5932b10721656a764d",
"api_token": "cc6391310046690662144b40765fd9d5",
"user_code": "hm03",
"customer_code": "C00203"
},
"time_cost(s)": "0.67062401771545"
}
失败:
{
"ask": "Failure",
"message": "Failure",
"Error": {
"errCode": "50047",
"errMessage": "用户已存在"
},
"time_cost(s)": "0.6192741394043"
}
paramsJson参数:
参数名 | 数据类型 | 是否必填 | 说明 |
---|---|---|---|
account_id | string | require | 登录账号,英文和数字组成 |
account_password | string | require | 登录密码 |
re_account_password | string | require | 确认登录密码 |
link_man | string | require | 联系人 |
mobile | string | require | 手机号码 |
tele | string | option | 电话 |
name | string | require | 姓名 |
string | require | 邮箱 | |
address | string | option | 地址 |
company_name | string | option | 公司名 |
response参数:
参数名 | 数据类型 | 说明 | |
---|---|---|---|
ask | string | 参考response公共参数 |
|
message | string | 参考response公共参数 |
|
result | object | 参考result格式 |
|
Error | object | 参考Error格式 |
result参数:
参数名 | 数据类型 | 说明 | |
---|---|---|---|
api_key | string | API对接密钥 | |
api_token | string | API对接token | |
user_code | string | 登录账号 | |
customer_code | string | 客户代码 |