Skip to content

发送验证码

调用此接口 ,传入手机号码, 可发送验证码

接口信息

项目
接口地址/captcha/sent
请求方式GET / POST
需要登录
对应模块captcha_sent
文档分类用户与登录

请求参数

参数类型必填默认值说明
phonestring-手机号码
ctcodestring86国家区号,默认 86 即中国

HTTP 示例

bash
GET /captcha/sent?phone=13xxx

编程式调用

ts
import { captchaSent } from 'hana-music-api'

const result = await captchaSent({
  phone: '13xxx',
})

console.log(result.body)

补充说明

说明 : 调用此接口 ,传入手机号码, 可发送验证码

必选参数 : phone: 手机号码

可选参数 :ctcode: 国家区号,默认 86 即中国

接口地址 : /captcha/sent

调用例子 : /captcha/sent?phone=13xxx

Released under the MIT License.