Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
amywang_xiannv
NeteaseCloudMusicApi
提交
83be4cc7
N
NeteaseCloudMusicApi
项目概览
amywang_xiannv
/
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,发现更多精彩内容 >>
提交
83be4cc7
编写于
5月 27, 2021
作者:
C
chen10
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加云贝推歌接口
上级
97bd7fed
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
68 addition
and
1 deletion
+68
-1
docs/README.md
docs/README.md
+24
-1
module/yunbei_rcmd_song.js
module/yunbei_rcmd_song.js
+22
-0
module/yunbei_rcmd_song_history.js
module/yunbei_rcmd_song_history.js
+22
-0
未找到文件。
docs/README.md
浏览文件 @
83be4cc7
...
...
@@ -1201,7 +1201,7 @@ tags: 歌单标签
**可选参数 :**
`order`
: 可选值为 'new' 和 'hot', 分别对应最新和最热 , 默认为
'hot'
`cat`
:
`cat`
:
tag, 比如 " 华语 "、" 古风 " 、" 欧美 "、" 流行 ", 默认为
`cat`
: tag, 比如 " 华语 "、" 古风 " 、" 欧美 "、" 流行 ", 默认为
"全部",可从歌单分类接口获取(/playlist/catlist)
`limit`
: 取出歌单数量 , 默认为 50
...
...
@@ -3273,6 +3273,29 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**调用例子 :**
使用GET方式:
`/batch?/api/v2/banner/get={"clientType":"pc"}`
使用POST方式传入参数:
`{ "/api/v2/banner/get": {"clientType":"pc"} }`
### 云贝推歌
说明 : 登录后调用此接口 , 传入歌曲 id, 可以进行云贝推歌
**必选参数 :**
`id`
: 歌曲 id
**可选参数 :**
`reason`
: 推歌理由
**接口地址 :**
`/yunbei/rcmd/song`
**调用例子 :**
`/yunbei/rcmd/song?id=65528`
`/yunbei/rcmd/song?id=65528&reason=人间好声音推荐给你听`
### 云贝推歌历史记录
说明 : 登录后调用此接口 , 可以获得云贝推歌历史记录
**可选参数 :**
`size`
: 返回数量 , 默认为 20
`cursor`
: 返回数据的 cursor, 默认为 '' , 传入上一次返回结果的 cursor,将会返回下一页的数据
**接口地址 :**
`/yunbei/rcmd/song/history`
**调用例子 :**
`/yunbei/rcmd/song/history?size=10`
## 离线访问此文档
...
...
module/yunbei_rcmd_song.js
0 → 100644
浏览文件 @
83be4cc7
// 云贝推歌
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
songId
:
query
.
id
,
reason
:
query
.
reason
||
'
好歌献给你
'
,
scene
:
''
,
fromUserId
:
-
1
,
}
return
request
(
'
POST
'
,
`https://music.163.com/weapi/yunbei/rcmd/song/submit`
,
data
,
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
,
realIP
:
query
.
realIP
,
},
)
}
\ No newline at end of file
module/yunbei_rcmd_song_history.js
0 → 100644
浏览文件 @
83be4cc7
// 云贝推歌历史记录
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
page
:
JSON
.
stringify
({
size
:
query
.
size
||
20
,
cursor
:
query
.
cursor
||
''
,
})
}
return
request
(
'
POST
'
,
`https://music.163.com/weapi/yunbei/rcmd/song/history/list`
,
data
,
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
,
realIP
:
query
.
realIP
,
},
)
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录