DiscoverSection

tmdb-js/sections/types. DiscoverSection

A class that represents the discover section of TMDb.

Constructor

new DiscoverSection(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) discoverMoviesAsync(settings) → {Promise.<*>}

Discovers movie data based on the passed settings.
Source:
Parameters:
Name Type Description
settings exports.DiscoverMovieSettings The discover settings.
Returns:
Type:
Promise.<*>
A Promise of discovered movie data.

(async) discoverTvShowsAsync(settings) → {Promise.<*>}

Discovers TV show data based on the passed settings.
Source:
Parameters:
Name Type Description
settings exports.DiscoverTvShowSettings The discover settings.
Returns:
Type:
Promise.<*>
A Promise of discovered TV show data.