注意:本功能仅提供生成验证码的服务,不提供向手机或邮箱发送验证码的服务

    生成验证码
    接口描述 根据手机号或邮箱获取验证码
    请求URL https://api.solarmanpv.com/account/v1.0/captcha
    请求方式 post
    请求类型 application/json
    返回类型 /
    请求参数
    参数名 数据类型 参数类型 是否必填 描述说明
    appId string query Y 应用APPID 示例值:201911067156002
    appSecret string query Y appSecret密钥
    email string body N 邮箱
    phoneNumber string body N 手机号
    phoneNumberPrefix string body N 手机号前缀 ,示例值:86
    purpose string body Y 验证码类型(注册:REG,重置密码:RESET_PWD,绑定:BIND) ,示例值:ACCOUNT
    响应参数
    参数名 数据类型 参数类型 是否必填 描述说明
    captcha string body N 验证码
    code string body N 信息码 ,示例值:10000
    validity integer body N 有效期(单位是秒)
    msg string body N 信息描述 ,示例值:success
    success boolean body N 是否成功 ,示例值:true
    requestId string body N 请求标识 ,示例值:1d6f6eca9bee4b6483d4af064b659eec
    示例
    请求参数 {
    “phoneNumber”:”176250134584”,
    “phoneNumberPrefix”:”86”,
    “purpose”:”BIND”
    }
    返回值 {
    “code”: null,
    “msg”: null,
    “success”: true,
    “requestId”: “0ea84ef086a546cd84b69e31121e6ac4”,
    “captcha”: “566380”,
    “validity”: 1800
    }