mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
新增发送文本动态接口
This commit is contained in:
parent
6c3743959e
commit
9e9c77541a
@ -344,6 +344,8 @@ banner({ type:0 }).then(res=>{
|
|||||||
222. 账号云豆数
|
222. 账号云豆数
|
||||||
223. 领取云豆
|
223. 领取云豆
|
||||||
224. 获取 VIP 信息
|
224. 获取 VIP 信息
|
||||||
|
225. 音乐人签到
|
||||||
|
226. 发送文本动态
|
||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
|
||||||
|
@ -241,6 +241,7 @@
|
|||||||
223. 领取云豆
|
223. 领取云豆
|
||||||
224. 获取 VIP 信息
|
224. 获取 VIP 信息
|
||||||
225. 音乐人签到
|
225. 音乐人签到
|
||||||
|
226. 发送文本动态
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
@ -3507,6 +3508,14 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
|||||||
|
|
||||||
**接口地址 :** `/playlist/privacy`
|
**接口地址 :** `/playlist/privacy`
|
||||||
|
|
||||||
|
### 发送文本动态
|
||||||
|
|
||||||
|
说明: 可以调用此接口发送动态。
|
||||||
|
|
||||||
|
**必选参数 :** `msg` : 要发送的动态内容
|
||||||
|
|
||||||
|
**接口地址 :** `/send/event/text`
|
||||||
|
|
||||||
## 离线访问此文档
|
## 离线访问此文档
|
||||||
|
|
||||||
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
||||||
|
20
module/send_event_text.js
Normal file
20
module/send_event_text.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// 发送文本动态
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
msg: query.msg,
|
||||||
|
type: 'noresource',
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://interface.music.163.com/eapi/share/friends/resource`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'eapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: '/api/share/friends/resource',
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user