TvShowSection

tmdb-js/sections/types. TvShowSection

A class that represents the TV show section in TMDb.

Constructor

new TvShowSection(apiKey, language)

Initializes this object.
Source:
Parameters:
Name Type Default Description
apiKey string The TMDb API key.
language string en-US The language of queries, the default is "en-US".

Methods

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

Gets TV show certifications.
Source:
Returns:
Type:
Promise.<*>
A Promise of TV show certification data in JSON format.

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

Gets TV show changes.
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 TV show changes.

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

Gets the latest TV shows.
Source:
Returns:
Type:
Promise.<*>
A Promise of the latest TV shows in JSON format.

(async) getPopularAsync(page) → {Promise.<*>}

Gets popular TV shows.
Source:
Parameters:
Name Type Default Description
page Number null The page.
Returns:
Type:
Promise.<*>
A Promise of popular TV show data in JSON format.

(async) getTopRatedAsync(page) → {Promise.<*>}

Gets top rated TV shows.
Source:
Parameters:
Name Type Default Description
page Number null The page.
Returns:
Type:
Promise.<*>
A Promise of top rated TV show data in JSON format.

(async) getTvAiringTodayAsync(page) → {Promise.<*>}

Gets TV shows airing today.
Source:
Parameters:
Name Type Default Description
page Number null The page.
Returns:
Type:
Promise.<*>
A Promise of the TV shows airing today in JSON format.

(async) getTvOnTheAirAsync(page) → {Promise.<*>}

Gets TV shows currently on the air.
Source:
Parameters:
Name Type Default Description
page Number null The page.
Returns:
Type:
Promise.<*>
A Promise of TV shows that are on the air in JSON format.

getTvShow(id) → {exports.TvShow}

Gets a TvShow instance, based on the passed ID.
Source:
Parameters:
Name Type Description
id string The TV show ID.
Returns:
Type:
exports.TvShow
A TvShow object with the passed ID.

getTvShowEpisodeGroup(id) → {exports.TvShowEpisodeGroup}

Gets a TvShowEpisodeGroup instance, based on the passed ID.
Source:
Parameters:
Name Type Description
id string The ID of the episode group.
Returns:
Type:
exports.TvShowEpisodeGroup
A TvShowEpisodeGroup object with the passed ID.