mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-03-21 11:03:15 +00:00
docs: 更新文档
This commit is contained in:
parent
3188238678
commit
bbb2b9d4a0
@ -71,6 +71,7 @@
|
|||||||
"dotenv": "^17.3.1",
|
"dotenv": "^17.3.1",
|
||||||
"express": "^5.2.1",
|
"express": "^5.2.1",
|
||||||
"express-fileupload": "^1.5.2",
|
"express-fileupload": "^1.5.2",
|
||||||
|
"gzip": "^0.1.0",
|
||||||
"music-metadata": "^11.12.3",
|
"music-metadata": "^11.12.3",
|
||||||
"node-forge": "^1.3.3",
|
"node-forge": "^1.3.3",
|
||||||
"pac-proxy-agent": "^7.2.0",
|
"pac-proxy-agent": "^7.2.0",
|
||||||
|
|||||||
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@ -26,6 +26,9 @@ importers:
|
|||||||
express-fileupload:
|
express-fileupload:
|
||||||
specifier: ^1.5.2
|
specifier: ^1.5.2
|
||||||
version: 1.5.2
|
version: 1.5.2
|
||||||
|
gzip:
|
||||||
|
specifier: ^0.1.0
|
||||||
|
version: 0.1.0
|
||||||
music-metadata:
|
music-metadata:
|
||||||
specifier: ^11.12.3
|
specifier: ^11.12.3
|
||||||
version: 11.12.3
|
version: 11.12.3
|
||||||
@ -1266,6 +1269,9 @@ packages:
|
|||||||
graceful-fs@4.2.11:
|
graceful-fs@4.2.11:
|
||||||
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
|
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
|
||||||
|
|
||||||
|
gzip@0.1.0:
|
||||||
|
resolution: {integrity: sha512-o2kq0ogD3MMAwDUt3G8y6EtFPqXDtpNI/zNWkZoOwYkjp/j8/Q9QLpVySPxYaQ521hPT8GoV9g1/WTkd7DM5Aw==}
|
||||||
|
|
||||||
has-bigints@1.1.0:
|
has-bigints@1.1.0:
|
||||||
resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==}
|
resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@ -4055,6 +4061,8 @@ snapshots:
|
|||||||
|
|
||||||
graceful-fs@4.2.11: {}
|
graceful-fs@4.2.11: {}
|
||||||
|
|
||||||
|
gzip@0.1.0: {}
|
||||||
|
|
||||||
has-bigints@1.1.0: {}
|
has-bigints@1.1.0: {}
|
||||||
|
|
||||||
has-flag@3.0.0: {}
|
has-flag@3.0.0: {}
|
||||||
|
|||||||
@ -5143,6 +5143,72 @@ let data = encodeURIComponent(
|
|||||||
|
|
||||||
**调用例子 :** `/comment/reply?id=2058263032&commentId=123456789&content=我也觉得这首歌很棒!`
|
**调用例子 :** `/comment/reply?id=2058263032&commentId=123456789&content=我也觉得这首歌很棒!`
|
||||||
|
|
||||||
|
### DIFM电台 - 分类
|
||||||
|
|
||||||
|
说明: 调用此接口, 获取DIFM电台分类
|
||||||
|
|
||||||
|
**必选参数 :**
|
||||||
|
|
||||||
|
`sources`: 来源列表, 0: 最嗨电音 1: 古典电台 2: 爵士电台
|
||||||
|
|
||||||
|
**接口地址:** `/dj/difm/all/style/channel`
|
||||||
|
|
||||||
|
**调用例子:** `/dj/difm/all/style/channel?sources=[0]`
|
||||||
|
|
||||||
|
### DIFM电台 - 收藏列表
|
||||||
|
|
||||||
|
说明: 调用此接口, 获取DIFM电台收藏列表
|
||||||
|
|
||||||
|
**必选参数 :**
|
||||||
|
|
||||||
|
`sources`: 来源列表, 0: 最嗨电音 1: 古典电台 2: 爵士电台
|
||||||
|
|
||||||
|
**接口地址:** `/dj/difm/subscribe/channels/get`
|
||||||
|
|
||||||
|
**调用例子:** `/dj/difm/subscribe/channels/get?sources=[0]`
|
||||||
|
|
||||||
|
### DIFM电台 - 收藏频道
|
||||||
|
|
||||||
|
说明: 调用此接口, 可收藏DIFM频道
|
||||||
|
|
||||||
|
**必选参数 :**
|
||||||
|
|
||||||
|
`id`: 频道id
|
||||||
|
|
||||||
|
**接口地址:** `/dj/difm/channel/subscribe`
|
||||||
|
|
||||||
|
**调用例子:** `/dj/difm/channel/subscribe?id=1`
|
||||||
|
|
||||||
|
### DIFM电台 - 取消收藏频道
|
||||||
|
|
||||||
|
说明: 调用此接口, 可取消收藏DIFM频道
|
||||||
|
|
||||||
|
**必选参数 :**
|
||||||
|
|
||||||
|
`id`: 频道id
|
||||||
|
|
||||||
|
**接口地址:** `/dj/difm/channel/unsubscribe`
|
||||||
|
|
||||||
|
**调用例子:** `/dj/difm/channel/unsubscribe?id=1`
|
||||||
|
|
||||||
|
### DIFM电台 - 播放列表
|
||||||
|
|
||||||
|
说明: 调用此接口, 获取DIFM播放列表
|
||||||
|
|
||||||
|
**必选参数 :**
|
||||||
|
|
||||||
|
`source`: 来源, 0: 最嗨电音 1: 古典电台 2: 爵士电台
|
||||||
|
|
||||||
|
`channelId`: 频道id
|
||||||
|
|
||||||
|
**可选参数 :**
|
||||||
|
|
||||||
|
`limit`: 返回数量, 默认为 5
|
||||||
|
|
||||||
|
**接口地址:** `/dj/difm/playing/tracks/list`
|
||||||
|
|
||||||
|
**调用例子:** `/dj/difm/playing/tracks/list?source=0&channelId=1012`
|
||||||
|
|
||||||
## 离线访问此文档
|
## 离线访问此文档
|
||||||
|
|
||||||
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
||||||
|
|||||||
@ -240,6 +240,7 @@ const createRequest = (uri, data, options) => {
|
|||||||
headers['User-Agent'] = options.ua || chooseUserAgent('api', 'iphone')
|
headers['User-Agent'] = options.ua || chooseUserAgent('api', 'iphone')
|
||||||
|
|
||||||
if (crypto === 'eapi') {
|
if (crypto === 'eapi') {
|
||||||
|
// headers['x-aeapi'] = true // 服务器会使用gzip压缩返回值
|
||||||
data.header = header
|
data.header = header
|
||||||
data.e_r = toBoolean(
|
data.e_r = toBoolean(
|
||||||
options.e_r !== undefined
|
options.e_r !== undefined
|
||||||
@ -323,6 +324,7 @@ const createRequest = (uri, data, options) => {
|
|||||||
if (crypto === 'eapi' && data.e_r) {
|
if (crypto === 'eapi' && data.e_r) {
|
||||||
answer.body = encrypt.eapiResDecrypt(
|
answer.body = encrypt.eapiResDecrypt(
|
||||||
body.toString('hex').toUpperCase(),
|
body.toString('hex').toUpperCase(),
|
||||||
|
headers['x-aeapi'],
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
answer.body =
|
answer.body =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user