Skip to content

更换绑定手机

调用此接口 ,可更换绑定手机(流程:先发送验证码到原手机号码,再发送验证码到新手机号码然后再调用此接口)

接口信息

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

请求参数

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

HTTP 示例

bash
GET /rebind?phone=xxx&oldcaptcha=1234&captcha=5678

编程式调用

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

const result = await rebind({
  phone: 'xxx',
  oldcaptcha: '1234',
  captcha: '5678',
})

console.log(result.body)

补充说明

说明 : 调用此接口 ,可更换绑定手机(流程:先发送验证码到原手机号码,再发送验证码到新手机号码然后再调用此接口)

必选参数 :oldcaptcha: 原手机验证码

captcha: 新手机验证码

phone : 手机号码

ctcode : 国家区号,默认 86 即中国

接口地址 : /rebind

调用例子 : /rebind?phone=xxx&oldcaptcha=1234&captcha=5678

Released under the MIT License.