Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
amywang_xiannv
NeteaseCloudMusicApi
提交
fbe87a64
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
fbe87a64
编写于
2月 27, 2021
作者:
B
binaryify
提交者:
GitHub
2月 27, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1155 from 7lsu/master
增加私信专辑功能
上级
1eb178d0
cd17ccfb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
36 addition
and
1 deletion
+36
-1
docs/README.md
docs/README.md
+18
-1
module/send_album.js
module/send_album.js
+18
-0
未找到文件。
docs/README.md
浏览文件 @
fbe87a64
...
...
@@ -2907,7 +2907,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**调用例子 :**
`/send/text?user_ids=32953014&msg=test`
,
`/send/text?user_ids=32953014,475625142&msg=test`
### 发送私信
音乐
### 发送私信
(带歌曲)
说明 : 登录后调用此接口 , 传入用户 id 和要发送的信息,音乐id, 可以发送音乐私信,返回内容为历史私信
...
...
@@ -2915,12 +2915,29 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
`user_ids`
: 用户 id,多个需用逗号隔开
`id`
: 要发送音乐的id
`msg`
: 要发送的信息
**接口地址 :**
`/send/song`
**调用例子 :**
`/send/song?user_ids=1&id=351318&msg=测试`
### 发送私信(带专辑)
说明 : 登录后调用此接口 , 传入用户 id 和要发送的信息,专辑id, 可以发送专辑私信,返回内容为消息id
**必选参数 :**
`user_ids`
: 用户 id,多个需用逗号隔开
`id`
: 要发送专辑的id
`msg`
: 要发送的信息
**接口地址 :**
`/send/album`
**调用例子 :**
`/send/album?user_ids=1&id=351318&msg=测试`
### 发送私信(带歌单)
...
...
module/send_album.js
0 → 100644
浏览文件 @
fbe87a64
// 私信专辑
module
.
exports
=
(
query
,
request
)
=>
{
query
.
cookie
.
os
=
'
ios
'
query
.
cookie
.
appver
=
'
8.1.20
'
const
data
=
{
id
:
query
.
id
,
msg
:
query
.
msg
||
''
,
type
:
'
album
'
,
userIds
:
'
[
'
+
query
.
user_ids
+
'
]
'
,
}
return
request
(
'
POST
'
,
`https://music.163.com/api/msg/private/send`
,
data
,
{
crypto
:
'
api
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
,
realIP
:
query
.
realIP
,
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录