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 - MovieDbExceptionpublic 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 - MovieDbExceptionpublic MovieDb getMovieInfo(int movieId, String language) throws MovieDbException
movieId - language - MovieDbExceptionpublic MovieDb getMovieInfoImdb(String imdbId, String language) throws MovieDbException
imdbId - language - MovieDbExceptionpublic List<AlternativeTitle> getMovieAlternativeTitles(int movieId, String country) throws MovieDbException
movieId - country - MovieDbExceptionpublic List<Person> getMovieCasts(int movieId) throws MovieDbException
movieId - MovieDbExceptionpublic List<Artwork> getMovieImages(int movieId, String language) throws MovieDbException
movieId - language - MovieDbExceptionpublic List<Keyword> getMovieKeywords(int movieId) throws MovieDbException
movieId - MovieDbExceptionpublic List<ReleaseInfo> getMovieReleaseInfo(int movieId, String language) throws MovieDbException
movieId - language - MovieDbExceptionpublic List<Trailer> getMovieTrailers(int movieId, String language) throws MovieDbException
movieId - language - MovieDbExceptionpublic List<Translation> getMovieTranslations(int movieId) throws MovieDbException
movieId - MovieDbExceptionpublic CollectionInfo getCollectionInfo(int movieId, String language) throws MovieDbException
movieId - language - MovieDbExceptionpublic TmdbConfiguration getConfiguration()
public URL createImageUrl(String imagePath, String requiredSize) throws MovieDbException
imagePath - requiredSize - MovieDbExceptionpublic List<Person> searchPeople(String personName, boolean allResults) throws MovieDbException
personName - allResults - MovieDbExceptionpublic Person getPersonInfo(int personId) throws MovieDbException
personId - MovieDbExceptionpublic List<PersonCredit> getPersonCredits(int personId) throws MovieDbException
personId - MovieDbExceptionpublic List<Artwork> getPersonImages(int personId) throws MovieDbException
personId - MovieDbExceptionpublic MovieDb getLatestMovie() throws MovieDbException
MovieDbExceptionpublic List<MovieDb> getNowPlayingMovies(String language, boolean allResults) throws MovieDbException
language - allResults - MovieDbExceptionpublic List<MovieDb> getPopularMovieList(String language, boolean allResults) throws MovieDbException
language - allResults - MovieDbExceptionpublic List<MovieDb> getTopRatedMovies(String language, boolean allResults) throws MovieDbException
language - allResults - MovieDbExceptionpublic Company getCompanyInfo(int companyId) throws MovieDbException
companyId - MovieDbExceptionpublic List<MovieDb> getCompanyMovies(int companyId, String language, boolean allResults) throws MovieDbException
companyId - language - allResults - MovieDbExceptionpublic List<Company> searchCompanies(String companyName, String language, boolean allResults) throws MovieDbException
companyName - language - allResults - MovieDbExceptionpublic List<MovieDb> getSimilarMovies(int movieId, String language, boolean allResults) throws MovieDbException
movieId - language - allResults - MovieDbExceptionpublic List<Genre> getGenreList(String language) throws MovieDbException
language - MovieDbExceptionpublic List<MovieDb> getGenreMovies(int genreId, String language, boolean allResults) throws MovieDbException
genreId - language - allResults - MovieDbExceptionCopyright © 2012. All Rights Reserved.