Node.js library for accessing thetvdb API
Node.js library for accessing TheTVDB Api.
Install with the Node.JS package manager npm:
npm install thetvdb-api
Install via git clone:
git clonecd thetvdb-apinpm install
To start using this library you first need an API key. You can request one here. Then just follow this simple example that fetches all the shows containing "the Simpsons" in the name.
var tvDB =key = "abc123";;
Since this api is a little bit different that the usual REST api's I tried to change things a bit and simplified some of the names. Not all API endpoints are available but you can see them all here: http://www.thetvdb.com/wiki/index.php/Programmers_API#File_Structure
Here are the ones provided in the library so far:
// Get all the available languages;// Get the current language;// Set a different language;// Get the current server time;// Get the series that matches the name;// Get the series basic information that matches the id;// Get the series full information that matches the id;// Get all the actors of a given series;// Get all the banners of a given series;// Get updated shows since the last time;
The MIT License (MIT)
Copyright (c) 2013 João Campinhos email@example.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.