public class TheTVDBApi extends Object
Constructor and Description |
---|
TheTVDBApi(String apiKey)
Create an API object with the passed API Key
|
TheTVDBApi(String apiKey,
org.apache.http.client.HttpClient httpClient)
Create an API object with the passed API key and using the supplied
HttpClient
|
Modifier and Type | Method and Description |
---|---|
Episode |
getAbsoluteEpisode(String seriesId,
int episodeNbr,
String language)
Get a specific absolute episode's information
|
List<Actor> |
getActors(String seriesId)
Get a list of actors from the series id
|
List<Episode> |
getAllEpisodes(String id,
String language)
Get all the episodes for a series.
|
Banners |
getBanners(String seriesId)
Get a list of banners for the series id
|
Episode |
getDVDEpisode(String seriesId,
int seasonNbr,
int episodeNbr,
String language)
Get a specific DVD episode's information
|
Episode |
getEpisode(String seriesId,
int seasonNbr,
int episodeNbr,
String language)
Get a specific episode's information
|
Episode |
getEpisodeById(String episodeId,
String language)
Get information for a specific episode
|
List<Language> |
getLanguages()
Gets the languages.
|
List<Episode> |
getSeasonEpisodes(String id,
int season,
String language)
Get all the episodes from a specific season for a series.
|
String |
getSeasonYear(String id,
int seasonNbr,
String language)
Get a list of banners for the series id
|
Series |
getSeries(String id,
String language)
Get the series information
|
TVDBUpdates |
getWeeklyUpdates()
Get the weekly updates
|
TVDBUpdates |
getWeeklyUpdates(int seriesId)
Get the weekly updates limited by Series ID
|
List<Series> |
searchSeries(String title,
String language)
Get a list of series using a title and language
|
public TheTVDBApi(String apiKey)
apiKey
- Must be validpublic TheTVDBApi(String apiKey, org.apache.http.client.HttpClient httpClient)
apiKey
- Must not be null or emptyhttpClient
- public Series getSeries(String id, String language) throws TvDbException
id
- language
- TvDbException
public List<Episode> getAllEpisodes(String id, String language) throws TvDbException
id
- language
- TvDbException
public List<Episode> getSeasonEpisodes(String id, int season, String language) throws TvDbException
id
- season
- language
- TvDbException
public Episode getEpisode(String seriesId, int seasonNbr, int episodeNbr, String language) throws TvDbException
seriesId
- seasonNbr
- episodeNbr
- language
- TvDbException
public Episode getDVDEpisode(String seriesId, int seasonNbr, int episodeNbr, String language) throws TvDbException
seriesId
- seasonNbr
- episodeNbr
- language
- TvDbException
public Episode getAbsoluteEpisode(String seriesId, int episodeNbr, String language) throws TvDbException
seriesId
- episodeNbr
- language
- TvDbException
public String getSeasonYear(String id, int seasonNbr, String language) throws TvDbException
id
- seasonNbr
- language
- TvDbException
public Banners getBanners(String seriesId) throws TvDbException
seriesId
- TvDbException
public List<Actor> getActors(String seriesId) throws TvDbException
seriesId
- TvDbException
public List<Series> searchSeries(String title, String language) throws TvDbException
title
- language
- TvDbException
public Episode getEpisodeById(String episodeId, String language) throws TvDbException
episodeId
- language
- TvDbException
public TVDBUpdates getWeeklyUpdates() throws TvDbException
TvDbException
public TVDBUpdates getWeeklyUpdates(int seriesId) throws TvDbException
seriesId
- 0 (zero) gets all seriesTvDbException
public List<Language> getLanguages() throws TvDbException
TvDbException
Copyright © 2012-2015. All Rights Reserved.