Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
鱼九·
NeteaseCloudMusicApi
提交
44bb25e8
N
NeteaseCloudMusicApi
项目概览
鱼九·
/
NeteaseCloudMusicApi
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NeteaseCloudMusicApi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
44bb25e8
编写于
2月 27, 2021
作者:
B
binaryify
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v4.0.7,#1151 #1152 #1143 #1161
上级
d1907ae5
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
76 addition
and
22 deletion
+76
-22
CHANGELOG.MD
CHANGELOG.MD
+13
-0
README.MD
README.MD
+1
-0
docs/README.md
docs/README.md
+14
-9
interface.d.ts
interface.d.ts
+21
-9
module/captcha_sent.js
module/captcha_sent.js
+1
-1
module/register_cellphone.js
module/register_cellphone.js
+1
-0
module/song_detail.js
module/song_detail.js
+1
-2
module/user_bindingcellphone.js
module/user_bindingcellphone.js
+21
-0
module/user_followeds.js
module/user_followeds.js
+3
-1
未找到文件。
CHANGELOG.MD
浏览文件 @
44bb25e8
# 更新日志
### 4.0.7 | 2021.2.27
-
更新红心接口,修复红心接口460错误问题
[
#1151
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1151
)
-
更新发送验证码接口
-
注册接口添加 countrycode 参数
[
#1152
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1152
)
-
新增绑定手机接口
[
#1152
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1152
)
-
更新 song/detail 接口
[
#1143
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1143
)
-
用户粉丝接口修改分页参数
[
#1161
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1161
)
### 4.0.6 | 2021.2.20
-
修复 eapi 接口无法正确解密response的问题
[
#1138
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1138
)
...
...
README.MD
浏览文件 @
44bb25e8
...
...
@@ -304,6 +304,7 @@ banner({ type:0 }).then(res=>{
200.
话题详情
201.
话题详情热门动态
202.
歌单详情动态
203.
绑定手机
## 更新日志
...
...
docs/README.md
浏览文件 @
44bb25e8
...
...
@@ -218,6 +218,7 @@
200.
话题详情
201.
话题详情热门动态
202.
歌单详情动态
203.
绑定手机
## 安装
...
...
@@ -478,8 +479,6 @@ v3.30.0后支持手动传入cookie,登录接口返回内容新增 `cookie` 字
**调用例子 :**
`/captcha/sent?phone=13xxx`
### 验证验证码
说明 : 调用此接口 ,传入手机号码和验证码, 可校验验证码是否正确
...
...
@@ -511,16 +510,22 @@ v3.30.0后支持手动传入cookie,登录接口返回内容新增 `cookie` 字
`nickname`
: 昵称
**可选参数 :**
`countrycode`
: 国家码,用于国外手机号,例如美国传入:
`1`
,默认86即中国
**接口地址 :**
`/register/cellphone`
**调用例子 :**
`/register/cellphone?phone=13xxx&password=xxxxx&captcha=1234&nickname=binary1345`
### 检测手机号码是否已注册
说明 : 调用此接口 ,可检测手机号码是否已注册
**必选参数 :**
**必选参数 :**
`phone`
: 手机号码
**可选参数 :**
`countrycode`
: 国家码,用于国外手机号,例如美国传入:
`1`
**可选参数 :**
`countrycode`
: 国家码,用于国外手机号,例如美国传入:
`1`
,默认86即中国
**接口地址 :**
`/cellphone/existence/check`
**调用例子 :**
`/cellphone/existence/check?phone=13xxx`
...
...
@@ -834,14 +839,14 @@ tags: 歌单标签
**必选参数 :**
`uid`
: 用户 id
**可选参数 :**
`limit`
: 返回数量 , 默认为 30
`lasttime`
: 返回数据的
`lasttime`
,默认-1,传入上一次返回结果的 lasttime,将会返回下一页的数据
**可选参数 :**
`limit`
: 返回数量 , 默认为 30
`offset`
: 偏移数量,用于分页 ,如 :( 页数 -1)
\*
30, 其中 30 为 limit 的值 , 默认为 0
**接口地址 :**
`/user/followeds`
**调用例子 :**
`/user/followeds?uid=32953014`
`/user/followeds?uid=416608258&
time=1560152549136
`
**调用例子 :**
`/user/followeds?uid=32953014`
`/user/followeds?uid=416608258&
limit=1`
`/user/followeds?uid=416608258&limit=1&offset=1
`
### 获取用户动态
...
...
interface.d.ts
浏览文件 @
44bb25e8
...
...
@@ -264,19 +264,22 @@ export function batch(
):
Promise
<
Response
>
export
function
captcha_sent
(
params
:
{
cellphone
:
string
;
ctcode
?:
string
}
&
RequestBaseConfig
,
params
:
{
cellphone
:
string
;
ctcode
?:
number
|
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
export
function
captcha_verify
(
params
:
{
ctcode
?:
string
cellphone
:
string
ctcode
?:
number
|
string
cellphone
:
number
|
string
captcha
:
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
export
function
cellphone_existence_check
(
params
:
{
cellphone
:
string
;
countrycode
:
string
}
&
RequestBaseConfig
,
params
:
{
cellphone
:
number
|
string
countrycode
:
number
|
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
export
function
check_music
(
...
...
@@ -674,16 +677,16 @@ export function login(
export
function
login_cellphone
(
params
:
{
phone
:
string
countrycode
?:
string
phone
:
number
|
string
countrycode
?:
number
|
string
password
:
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
export
function
login_cellphone
(
params
:
{
phone
:
string
countrycode
?:
string
phone
:
number
|
string
countrycode
?:
number
|
string
md5_password
:
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
...
...
@@ -903,7 +906,7 @@ export function rebind(
captcha
:
string
phone
:
string
oldcaptcha
:
string
ctcode
?:
string
ctcode
?:
number
|
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
...
...
@@ -1393,3 +1396,12 @@ export function login_qr_check(
export
function
playlist_detail_dynamic
(
params
:
{
id
:
string
|
number
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
export
function
user_bindingcellphone
(
params
:
{
phone
:
number
|
string
captcha
:
number
|
string
countrycode
?:
number
|
string
password
?:
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
module/captcha_sent.js
浏览文件 @
44bb25e8
...
...
@@ -5,7 +5,7 @@ module.exports = (query, request) => {
ctcode
:
query
.
ctcode
||
'
86
'
,
cellphone
:
query
.
phone
,
}
return
request
(
'
POST
'
,
`https://music.163.com/
we
api/sms/captcha/sent`
,
data
,
{
return
request
(
'
POST
'
,
`https://music.163.com/api/sms/captcha/sent`
,
data
,
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
,
...
...
module/register_cellphone.js
浏览文件 @
44bb25e8
...
...
@@ -8,6 +8,7 @@ module.exports = (query, request) => {
phone
:
query
.
phone
,
password
:
crypto
.
createHash
(
'
md5
'
).
update
(
query
.
password
).
digest
(
'
hex
'
),
nickname
:
query
.
nickname
,
countrycode
:
query
.
countrycode
||
'
86
'
,
}
return
request
(
'
POST
'
,
`https://music.163.com/api/register/cellphone`
,
data
,
{
crypto
:
'
weapi
'
,
...
...
module/song_detail.js
浏览文件 @
44bb25e8
...
...
@@ -3,8 +3,7 @@
module
.
exports
=
(
query
,
request
)
=>
{
query
.
ids
=
query
.
ids
.
split
(
/
\s
*,
\s
*/
)
const
data
=
{
c
:
'
[
'
+
query
.
ids
.
map
((
id
)
=>
'
{"id":
'
+
id
+
'
}
'
).
join
(
'
,
'
)
+
'
]
'
,
ids
:
'
[
'
+
query
.
ids
.
join
(
'
,
'
)
+
'
]
'
,
c
:
'
[
'
+
query
.
ids
.
map
((
id
)
=>
'
{"id":
'
+
id
+
'
}
'
).
join
(
'
,
'
)
+
'
]
'
}
return
request
(
'
POST
'
,
`https://music.163.com/weapi/v3/song/detail`
,
data
,
{
crypto
:
'
weapi
'
,
...
...
module/user_bindingcellphone.js
0 → 100644
浏览文件 @
44bb25e8
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
phone
:
query
.
phone
,
countrycode
:
query
.
countrycode
||
'
86
'
,
captcha
:
query
.
captcha
,
password
:
query
.
password
?
crypto
.
createHash
(
'
md5
'
).
update
(
query
.
password
).
digest
(
'
hex
'
)
:
''
,
}
return
request
(
'
POST
'
,
`https://music.163.com/api/user/bindingCellphone`
,
data
,
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
,
realIP
:
query
.
realIP
,
},
)
}
module/user_followeds.js
浏览文件 @
44bb25e8
...
...
@@ -3,8 +3,10 @@
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
userId
:
query
.
uid
,
time
:
query
.
lasttime
||
-
1
,
time
:
'
0
'
,
limit
:
query
.
limit
||
30
,
offset
:
query
.
offset
||
0
,
getcounts
:
'
true
'
,
}
return
request
(
'
POST
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录