GenreSection

tmdb-js/sections/types. GenreSection

A class that represents the genre section in TMDb.

Constructor

new GenreSection(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) getMovieGenresAsync() → {Promise.<*>}

Gets movie genres.
Source:
Returns:
Type:
Promise.<*>
A Promise of movie genre data.

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

Gets TV show genres.
Source:
Returns:
Type:
Promise.<*>
A Promise of TV show genre data.