public class TheMovieDb extends Object
Constructor and Description |
---|
TheMovieDb(String apiKey)
API for The Movie Db.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
compareMovies(MovieDb moviedb,
String title,
String year)
Compare the MovieDB object with a title & year
|
URL |
createImageUrl(String imagePath,
String requiredSize)
Generate the full image URL from the size and image path
|
String |
getApiKey()
Get the API key that is to be used
|
CollectionInfo |
getCollectionInfo(int movieId,
String language)
This method is used to retrieve all of the basic information about a movie collection.
|
Company |
getCompanyInfo(int companyId)
This method is used to retrieve the basic information about a production company on TMDb.
|
List<MovieDb> |
getCompanyMovies(int companyId,
String language,
boolean allResults)
This method is used to retrieve the movies associated with a company.
|
TmdbConfiguration |
getConfiguration()
Get the configuration information
|
List<Genre> |
getGenreList(String language)
You can use this method to retrieve the list of genres used on TMDb.
|
List<MovieDb> |
getGenreMovies(int genreId,
String language,
boolean allResults)
Get a list of movies per genre.
|
MovieDb |
getLatestMovie()
This method is used to retrieve the newest movie that was added to TMDb.
|
List<AlternativeTitle> |
getMovieAlternativeTitles(int movieId,
String country)
This method is used to retrieve all of the alternative titles we have for a particular movie.
|
List<Person> |
getMovieCasts(int movieId)
This method is used to retrieve all of the movie cast information.
|
List<Artwork> |
getMovieImages(int movieId,
String language)
This method should be used when you’re wanting to retrieve all of the images for a particular movie.
|
MovieDb |
getMovieInfo(int movieId,
String language)
This method is used to retrieve all of the basic movie information.
|
MovieDb |
getMovieInfoImdb(String imdbId,
String language)
This method is used to retrieve all of the basic movie information.
|
List<Keyword> |
getMovieKeywords(int movieId)
This method is used to retrieve all of the keywords that have been added to a particular movie.
|
List<ReleaseInfo> |
getMovieReleaseInfo(int movieId,
String language)
This method is used to retrieve all of the release and certification data we have for a specific movie.
|
List<Trailer> |
getMovieTrailers(int movieId,
String language)
This method is used to retrieve all of the trailers for a particular movie.
|
List<Translation> |
getMovieTranslations(int movieId)
This method is used to retrieve a list of the available translations for a specific movie.
|
List<MovieDb> |
getNowPlayingMovies(String language,
boolean allResults)
This method is used to retrieve the movies currently in theatres.
|
List<PersonCredit> |
getPersonCredits(int personId)
This method is used to retrieve all of the cast & crew information for the person.
|
List<Artwork> |
getPersonImages(int personId)
This method is used to retrieve all of the profile images for a person.
|
Person |
getPersonInfo(int personId)
This method is used to retrieve all of the basic person information.
|
List<MovieDb> |
getPopularMovieList(String language,
boolean allResults)
This method is used to retrieve the daily movie popularity list.
|
List<MovieDb> |
getSimilarMovies(int movieId,
String language,
boolean allResults)
The similar movies method will let you retrieve the similar movies for a particular movie.
|
List<MovieDb> |
getTopRatedMovies(String language,
boolean allResults)
This method is used to retrieve the top rated movies that have over 10 votes on TMDb.
|
List<Company> |
searchCompanies(String companyName,
String language,
boolean allResults)
Search Companies.
|
List<MovieDb> |
searchMovie(String movieName,
String language,
boolean allResults)
Search Movies This is a good starting point to start finding movies on TMDb.
|
List<Person> |
searchPeople(String personName,
boolean allResults)
This is a good starting point to start finding people on TMDb.
|
void |
setProxy(String host,
String port,
String username,
String password)
Set the proxy information
|
void |
setTimeout(int connect,
int read)
Set the connection and read time out values
|
static void |
showVersion()
Output the API version information to the debug log
|
public TheMovieDb(String apiKey) throws MovieDbException
apiKey
- MovieDbException
public static void showVersion()
public String getApiKey()
public void setProxy(String host, String port, String username, String password)
host
- port
- username
- password
- public void setTimeout(int connect, int read)
connect
- read
- public static boolean compareMovies(MovieDb moviedb, String title, String year)
moviedb
- The moviedb object to compare tootitle
- The title of the movie to compareyear
- The year of the movie to comparepublic List<MovieDb> searchMovie(String movieName, String language, boolean allResults) throws MovieDbException
movieName
- language
- allResults
- MovieDbException
public MovieDb getMovieInfo(int movieId, String language) throws MovieDbException
movieId
- language
- MovieDbException
public MovieDb getMovieInfoImdb(String imdbId, String language) throws MovieDbException
imdbId
- language
- MovieDbException
public List<AlternativeTitle> getMovieAlternativeTitles(int movieId, String country) throws MovieDbException
movieId
- country
- MovieDbException
public List<Person> getMovieCasts(int movieId) throws MovieDbException
movieId
- MovieDbException
public List<Artwork> getMovieImages(int movieId, String language) throws MovieDbException
movieId
- language
- MovieDbException
public List<Keyword> getMovieKeywords(int movieId) throws MovieDbException
movieId
- MovieDbException
public List<ReleaseInfo> getMovieReleaseInfo(int movieId, String language) throws MovieDbException
movieId
- language
- MovieDbException
public List<Trailer> getMovieTrailers(int movieId, String language) throws MovieDbException
movieId
- language
- MovieDbException
public List<Translation> getMovieTranslations(int movieId) throws MovieDbException
movieId
- MovieDbException
public CollectionInfo getCollectionInfo(int movieId, String language) throws MovieDbException
movieId
- language
- MovieDbException
public TmdbConfiguration getConfiguration()
public URL createImageUrl(String imagePath, String requiredSize) throws MovieDbException
imagePath
- requiredSize
- MovieDbException
public List<Person> searchPeople(String personName, boolean allResults) throws MovieDbException
personName
- allResults
- MovieDbException
public Person getPersonInfo(int personId) throws MovieDbException
personId
- MovieDbException
public List<PersonCredit> getPersonCredits(int personId) throws MovieDbException
personId
- MovieDbException
public List<Artwork> getPersonImages(int personId) throws MovieDbException
personId
- MovieDbException
public MovieDb getLatestMovie() throws MovieDbException
MovieDbException
public List<MovieDb> getNowPlayingMovies(String language, boolean allResults) throws MovieDbException
language
- allResults
- MovieDbException
public List<MovieDb> getPopularMovieList(String language, boolean allResults) throws MovieDbException
language
- allResults
- MovieDbException
public List<MovieDb> getTopRatedMovies(String language, boolean allResults) throws MovieDbException
language
- allResults
- MovieDbException
public Company getCompanyInfo(int companyId) throws MovieDbException
companyId
- MovieDbException
public List<MovieDb> getCompanyMovies(int companyId, String language, boolean allResults) throws MovieDbException
companyId
- language
- allResults
- MovieDbException
public List<Company> searchCompanies(String companyName, String language, boolean allResults) throws MovieDbException
companyName
- language
- allResults
- MovieDbException
public List<MovieDb> getSimilarMovies(int movieId, String language, boolean allResults) throws MovieDbException
movieId
- language
- allResults
- MovieDbException
public List<Genre> getGenreList(String language) throws MovieDbException
language
- MovieDbException
public List<MovieDb> getGenreMovies(int genreId, String language, boolean allResults) throws MovieDbException
genreId
- language
- allResults
- MovieDbException
Copyright © 2012. All Rights Reserved.