【文件属性】:
文件名称:thetvdb:用于访问 thetvdb 的新(开发)API 的 Node.js 库
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-01 14:20:12
JavaScript
电视数据库
用于访问 thetvdb 的新(开发)API 的 Node.js 库
var auth = {
"apikey" : "theapikey" ,
"username" : "theusername" ,
"userpass" : "thepassword"
}
var tv = new TheTvDb ( ) ;
搜索电视节目
tv . auth ( auth ) . then ( function ( data ) {
return tv . search ( search ) ;
} ) . then ( function ( results ) {
console . log ( results ) ;
} ) . error ( function ( err ) {
console . log ( err . message )
【文件预览】:
thetvdb-master
----README.md(2KB)
----index.js(5KB)