【文件属性】:
文件名称:deezer-public-api:这是Deezer Public API的Nodejs包装器,返回了Promise
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-23 20:53:10
nodejs api playlist rest rest-api
Deezer公共API包装器
这是Nodejs包装器,用于返回承诺。
安装
npm install deezer-public-api --save
用法示例
const DeezerPublicApi = require ( 'deezer-public-api' ) ;
let deezer = new DeezerPublicApi ( ) ;
//Search an artist
deezer . search . artist ( 'ILYSH' ) . then ( function ( result ) {
console . log ( result ) ;
} ) ;
//Get info for the given artist id
deezer . artist ( '58671252' ) . then ( function ( result ) {
【文件预览】:
deezer-public-api-master
----package.json(785B)
----.github()
--------ISSUE_TEMPLATE()
----test()
--------index.js(1KB)
----_config.yml(27B)
----package-lock.json(376B)
----src()
--------index.js(10KB)
----.gitignore(15B)
----README.md(3KB)
----.gitattributes(66B)