提交 74650ea7 编写于 作者: B binaryify

新增 检测手机号码是否已注册 和 初始化昵称 接口 #540

上级 4223c07a
# 更新日志 # 更新日志
### 3.19.0 | 2019.07.24
- 新增`检测手机号码是否已注册``初始化昵称`接口[#540](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/540)
### 3.18.6 | 2019.07.15 ### 3.18.6 | 2019.07.15
- 修复注册异常的问题 [#532](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/532) - 修复注册异常的问题 [#532](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/532)
......
...@@ -144,6 +144,8 @@ ...@@ -144,6 +144,8 @@
121. 专辑动态信息 121. 专辑动态信息
122. 热搜列表(详细) 122. 热搜列表(详细)
123. 更换绑定手机 123. 更换绑定手机
124. 检测手机号码是否已注册
125. 初始化昵称
## 环境要求 ## 环境要求
......
...@@ -139,6 +139,8 @@ ...@@ -139,6 +139,8 @@
121. 专辑动态信息 121. 专辑动态信息
122. 热搜列表(详细) 122. 热搜列表(详细)
123. 更换绑定手机 123. 更换绑定手机
124. 检测手机号码是否已注册
125. 初始化昵称
## 安装 ## 安装
...@@ -347,6 +349,24 @@ Cookies ...@@ -347,6 +349,24 @@ Cookies
**调用例子 :** `/register/cellphone?phone=13xxx&password=xxxxx&captcha=1234&nickname=binary1345` **调用例子 :** `/register/cellphone?phone=13xxx&password=xxxxx&captcha=1234&nickname=binary1345`
### 检测手机号码是否已注册
说明 : 调用此接口 ,可检测手机号码是否已注册
**必选参数 :**
`phone` : 手机号码
**接口地址 :** `/cellphone/existence/check`
**调用例子 :** `/cellphone/existence/check?phone=13xxx`
### 初始化昵称
说明 : 刚注册的账号(需登录),调用此接口 ,可初始化昵称
**必选参数 :**
`nickname` : 昵称
**接口地址 :** `/activate/initProfile`
**调用例子 :** `/activate/initProfile?nickname=testUser2019`
### 更换绑定手机 ### 更换绑定手机
说明 : 调用此接口 ,可更换绑定手机(流程:先发送验证码到原手机号码,再发送验证码到新手机号码然后再调用此接口) 说明 : 调用此接口 ,可更换绑定手机(流程:先发送验证码到原手机号码,再发送验证码到新手机号码然后再调用此接口)
......
// 检测是否注册 // 初始化名字
module.exports = (query, request) => { module.exports = (query, request) => {
const data = { const data = {
......
// 检测是否注册 // 检测手机号码是否已注册
module.exports = (query, request) => { module.exports = (query, request) => {
const data = { const data = {
cellphone: query.cellphone cellphone: query.phone
}; };
return request( return request(
"POST", "POST",
......
{ {
"name": "NeteaseCloudMusicApi", "name": "NeteaseCloudMusicApi",
"version": "3.18.6", "version": "3.19.0",
"description": "网易云音乐 NodeJS 版 API", "description": "网易云音乐 NodeJS 版 API",
"scripts": { "scripts": {
"start": "node app.js", "start": "node app.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册