TvShowEpisode

tmdb-js/sections/types. TvShowEpisode

A class that represents a specific TV show episode in TMDb.

Constructor

new TvShowEpisode(episodeNumber, tvShowSeason)

Initializes this object.
Source:
Parameters:
Name Type Description
episodeNumber Number The episode number.
tvShowSeason exports.TvShowSeason The parent TV show season.

Methods

(async) getAccountStatesAsync(sessionId, guestSessionId) → {Promise.<*>}

Gets account state data. Only one of the IDs is allowed to be null or non-null in the same method call.
Source:
Parameters:
Name Type Description
sessionId string The session ID.
guestSessionId string The guest session ID.
Returns:
Type:
Promise.<*>
A Promise of account state data in JSON format.

(async) getChangesAsync(startDate, endDate, page) → {Promise.<*>}

Gets the changes of the TV show episode in question.
Source:
Parameters:
Name Type Default Description
startDate string The start date.
endDate string The end date.
page Number null The page.
Returns:
Type:
Promise.<*>
A Promise of JSON data with changes.

(async) getCreditsAsync() → {Promise.<*>}

Gets the credits of this TV show episode.
Source:
Returns:
Type:
Promise.<*>
A Promise of credit data in JSON format.

(async) getDetailsAsync(…appendToResponse) → {Promise.<*>}

Gets details about this TV show episode.
Source:
Parameters:
Name Type Attributes Description
appendToResponse string <repeatable>
Values of the append_to_response parameter used for making sub requests.
Returns:
Type:
Promise.<*>
A Promise of TV show episode details in JSON format.

(async) getExternalIdsAsync() → {Promise.<*>}

Gets the external IDs of this TV show episode.
Source:
Returns:
Type:
Promise.<*>
A Promise of external ID data in JSON format.

(async) getImagesAsync() → {Promise.<*>}

Gets the images of this TV show episode.
Source:
Returns:
Type:
Promise.<*>
A Promise of image data in JSON format.

(async) getTranslationsAsync() → {Promise.<*>}

Gets the translations of this TV show episode.
Source:
Returns:
Type:
Promise.<*>
A Promise of translation data in JSON format.

(async) getVideosAsync() → {Promise.<*>}

Gets the videos of this TV show episode.
Source:
Returns:
Type:
Promise.<*>
A Promise of video data in JSON format.