ConfigurationSection

tmdb-js/sections/types. ConfigurationSection

A class that represents the configuration section in TMDb.

Constructor

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

Gets the system wide TMDb API configuration information.
Source:
Returns:
Type:
Promise.<*>
A Promise of configuration data.

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

Gets the countries used in TMDb.
Source:
Returns:
Type:
Promise.<*>
A Promise of country data.

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

Gets the jobs and departments used in TMDb.
Source:
Returns:
Type:
Promise.<*>
A Promise of job/department data.

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

Gets the languages used in TMDb.
Source:
Returns:
Type:
Promise.<*>
A Promise of language data.

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

Gets the officially supported translations in TMDb.
Source:
Returns:
Type:
Promise.<*>
A Promise of translation data.

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

Gets the timezones used in TMDb.
Source:
Returns:
Type:
Promise.<*>
A Promise of timezone data.