请求体
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
email | string | 是 | 接收验证码的邮箱 |
code | string | 是 | 邮件验证码 |
newPassword | string | 是 | 至少 8 位,且至少包含一个字母和一个数字 |
curl -X POST 'https://resource-api.xyeidc.com/api/auth/forget' \
-H 'Api-Key: YOUR_API_KEY' \
-H 'Api-Secret: YOUR_API_SECRET' \
-H 'Content-Type: application/json' \
-d '{"email":"developer@example.com","code":"123456","newPassword":"NewExample123"}'
123456仅用于展示字段格式,请使用邮件中实际收到且尚未过期的验证码。
响应示例
{
"code": 200,
"msg": "Success!",
"data": null
}
