通过邮箱设置密码

 

一、接口描述

1.接口名称:

https://openapi.quanshi.com/user/account/resetPassword

2.发送方式:

POST

3.参数格式:

accept: application/json;content-type: application/json

 

二、输入参数

参数名 必选 类型 说明
email string 用户电子邮箱
password string 新密码,若不传递则系统自动生成一个随机密码

 

三、示例

返回示例

{
    "status": 0,
    "result": {
        "password": "yhy123"
    },
    "request_id": "confopenapiserver-192.168.28.45-1597745244.721618219.847",
    "timestamp": 1597745244721,
    "callSeq": "",
    "content_type": "application/json",
    "request_duration": "92.101201ms"
}

 

四、返回参数

参数名 类型 说明
status int 0:成功,非0失败
result json字符串 成功的返回,返回新设置的密码
password string 返回新设置的密码

备注

更多返回错误代码请看首页的错误代码描述