Package com.amilesend.tvmaze.client.api
Class PeopleApi
java.lang.Object
com.amilesend.tvmaze.client.api.ApiBase
com.amilesend.tvmaze.client.api.PeopleApi
TVMaze API to retrieve people information.
For more information, please refer to https://www.tvmaze.com/api#people
For more information, please refer to https://www.tvmaze.com/api#people
-
Constructor Summary
ConstructorsConstructorDescriptionPeopleApi
(com.amilesend.client.connection.Connection connection) Creates a newPeopleApi
object. -
Method Summary
Modifier and TypeMethodDescriptiongetCastCredits
(int personId, boolean isShowIncluded) Retrieves the list of show-level cast credits for a specific person.getCrewCredits
(int personId, boolean isShowIncluded) Retrieves the list of show-level crew credits for a specific person.getGuestCastCredits
(int personId, boolean isEpisodeIncluded) Retrieves the list of episode-level guest cast credits for a specific person.getIndex
(int pageNum) Gets the list of all persons in the TVMaze database.getPerson
(int personId, boolean isCastCreditsIncluded) Retrieves information for a specific person.
-
Constructor Details
-
PeopleApi
public PeopleApi(com.amilesend.client.connection.Connection connection) Creates a newPeopleApi
object.- Parameters:
connection
- the connection
-
-
Method Details
-
getPerson
Retrieves information for a specific person.- Parameters:
personId
- the person identifierisCastCreditsIncluded
- iftrue
, include cast credits in the response; else,false
- Returns:
- the person
- See Also:
-
getCastCredits
Retrieves the list of show-level cast credits for a specific person.- Parameters:
personId
- the person identifierisShowIncluded
- iftrue
, include show information in the response; else,false
- Returns:
- the list of cast credits
- See Also:
-
getCrewCredits
Retrieves the list of show-level crew credits for a specific person.- Parameters:
personId
- the person identifierisShowIncluded
- iftrue
, include show information in the response; else,false
- Returns:
- the list of crew credits
- See Also:
-
getGuestCastCredits
Retrieves the list of episode-level guest cast credits for a specific person.- Parameters:
personId
- the person identifierisEpisodeIncluded
- iftrue
, include episode information in the response; else,false
- Returns:
- the list of guest cast credits
- See Also:
-
getIndex
Gets the list of all persons in the TVMaze database. Note: This is paginated and requires manual specification of the page number with a maximum of 250 shows per response. This operation will throw aRequestException
when no more pages exist.- Parameters:
pageNum
- the page number- Returns:
- the list of persons
- Throws:
com.amilesend.client.connection.RequestException
- if there are no more persons to return- See Also:
-