提交 11e6bcbd 编写于 作者: B binaryify

更新接口和文档

上级 efa2d416
# 更新日志
### 3.25.3 | 2020.03.18
- 更新歌词,歌手分类列表接口
- 更新文档
### 3.25.3 | 2019.11.08
- 升级依赖,去除多余依赖
......
......@@ -494,12 +494,12 @@ name:歌单名字
desc:歌单描述
tags:歌单tag
tags:歌单tag ,多个用 `;` 隔开,只能用官方规定标签
```
**接口地址 :** `/playlist/update`
**调用例子 :** `/playlist/update?id=24381616&name=新歌单&desc=描述&tags=学习`
**调用例子 :** `/playlist/update?id=24381616&name=新歌单&desc=描述&tags=欧美`
### 更新歌单描述
说明 : 登陆后调用此接口,可以单独更新用户歌单描述
......
......@@ -32,7 +32,7 @@ module.exports = (query, request) => {
total: true
}
return request(
'POST', `https://music.163.com/weapi/artist/list`, data,
'POST', `https://music.163.com/api/v1/artist/list`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
)
}
\ No newline at end of file
// 歌词
module.exports = (query, request) => {
query.cookie.os = 'pc';
const data = {
id: query.id
id: query.id,
lv: -1,
kv: -1,
tv: -1
}
return request(
'POST', `https://music.163.com/weapi/song/lyric?lv=-1&kv=-1&tv=-1`, data,
{crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy}
'POST',
`https://music.163.com/api/song/lyric`,
data,
{ crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy }
)
}
\ No newline at end of file
}
{
"name": "NeteaseCloudMusicApi",
"version": "3.25.3",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
"test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit",
"lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ "
},
"keywords": [
"网易云音乐",
"网易云",
"音乐",
"网易云音乐nodejs"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"name": "NeteaseCloudMusicApi",
"version": "3.25.4",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
"test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit",
"lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ "
},
"keywords": [
"网易云音乐",
"网易云",
"音乐",
"网易云音乐nodejs"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"author": "binaryify",
"license": "MIT",
"dependencies": {
"apicache": "^1.5.2",
"express": "^4.17.1",
"pac-proxy-agent": "^3.0.1",
"request": "^2.88.0"
},
"devDependencies": {
"eslint": "^6.6.0",
"eslint-plugin-html": "^6.0.0",
"husky": "^3.0.9",
"intelli-espower-loader": "^1.0.1",
"lint-staged": "^9.4.2",
"mocha": "^6.2.2",
"power-assert": "^1.6.1"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"author": "binaryify",
"license": "MIT",
"dependencies": {
"apicache": "^1.5.2",
"express": "^4.17.1",
"pac-proxy-agent": "^3.0.1",
"request": "^2.88.0"
},
"devDependencies": {
"eslint": "^6.6.0",
"eslint-plugin-html": "^6.0.0",
"husky": "^3.0.9",
"intelli-espower-loader": "^1.0.1",
"lint-staged": "^9.4.2",
"mocha": "^6.2.2",
"power-assert": "^1.6.1"
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册