Skip to content

Chronoscross/TVDBSharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TVDBSharp

A C# wrapper for the TVDB API.

This API provides an easy-to-use interface to the TVDB API by translating the XML responses into objects. You won't need any knowledge about the API itself to use this library.

To get started there are a few steps you have to undertake.

1) Get an API key.
This is as easy as filling out a form on TheTVDB's webpage. Read the rules and enter your information, you can find your API key under 'Account'.

https://thetvdb.com/api-information

2) Optionally: familiarize yourself with the API itself.
You don't have to do this, but some people might want to read up on the, although slightly outdated, API.

https://api.thetvdb.com/swagger

3) Import the library.
This can be done by either forking this repository and compiling it yourself or by downloading the latest version from the link below.

Install the Nuget package at https://www.nuget.org/packages/TVDBSharp/

Add it as a reference to your project and you're all set.

4) Use it!
You can now use TVDBSharp in your own project. Look trough the examples project if you aren't entirely sure how to get started.

A simple example:

var tvdb = new TVDB("mykey"); // Create a new TVDB object with your API key.
var results = tvdb.Search("Battlestar Galactica", 3); // Search for a show and take the top-3.

foreach(var show in results){
 Console.WriteLine("{0}:\t{1}", show.Name, show.ID); // Print every show's name and ID.
}

Output:

Battlestar Galactica: 71173
Battlestar Galactica: Blood & Chrome: 204781
Battlestar Galactica <2003> : 73545

Notes
If you encounter any issues or have a suggestion: don't hesitate to open a ticket.
Should you wish to do so, you can contact me at jer_vannevel<at>hotmail.com.

Other networking sites:
[StackOverflow] (http://stackoverflow.com/users/1864167/jeroen-vannevel)
[Careers 2.0] (http://careers.stackoverflow.com/Vannevelj)
LinkedIn

About

A C# wrapper for the TVDB API.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C# 100.0%