mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-23 16:11:24 +08:00
Update README & Fix proxy bug & plan directory
This commit is contained in:
@@ -1,41 +1,47 @@
|
||||
一个调用网易云音乐API的node模块
|
||||
# NeteaseCloudMusicApi
|
||||
|
||||
一个调用网易云音乐 API 的 node 模块
|
||||
|
||||

|
||||
# start
|
||||
```
|
||||
|
||||
## Start
|
||||
``` shell
|
||||
npm install NeteaseCloudMusicApi
|
||||
```
|
||||
# usage
|
||||
|
||||
```js
|
||||
var api=require('NeteaseCloudMusicApi').api
|
||||
## Usage
|
||||
``` javascript
|
||||
var api = require('NeteaseCloudMusicApi').api
|
||||
api.search('年度之歌',function(data){
|
||||
console.log(data)
|
||||
})
|
||||
```
|
||||
or
|
||||
```js
|
||||
``` javascript
|
||||
import {api} from 'NeteaseCloudMusicApi'
|
||||
api.search('年度之歌',(data)=>{
|
||||
api.search('年度之歌',(data) => {
|
||||
console.log(data)
|
||||
})
|
||||
```
|
||||
|
||||
# api
|
||||
## search
|
||||
```js
|
||||
## API
|
||||
|
||||
### search
|
||||
``` javascript
|
||||
api.search(name:String,[callback:function,limit:Nnumber default:3, offset:Number default:0])
|
||||
```
|
||||
|
||||
## lrc
|
||||
```js
|
||||
### lrc
|
||||
``` javascript
|
||||
api.lrc(id:Number,[callback:function,lv:Number default:-1])
|
||||
```
|
||||
|
||||
## song
|
||||
```js
|
||||
### song
|
||||
``` javascript
|
||||
api.song(id:Number,[callback:function])
|
||||
```
|
||||
## Download
|
||||
|
||||
[github](https://github.com/Binaryify/NeteaseCloudMusicApi)
|
||||
|
||||
[npm](https://www.npmjs.com/package/NeteaseCloudMusicApi)
|
||||
[npm](https://www.npmjs.com/package/NeteaseCloudMusicApi)
|
||||
|
||||
Reference in New Issue
Block a user