Constructor
new ConfigurationSection(apiKey, language)
Initializes this object.
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.
Returns:
- Type:
-
Promise.<*>
A Promise of configuration data.
(async) getCountriesAsync() → {Promise.<*>}
Gets the countries used in TMDb.
Returns:
- Type:
-
Promise.<*>
A Promise of country data.
(async) getJobsAsync() → {Promise.<*>}
Gets the jobs and departments used in TMDb.
Returns:
- Type:
-
Promise.<*>
A Promise of job/department data.
(async) getLanguagesAsync() → {Promise.<*>}
Gets the languages used in TMDb.
Returns:
- Type:
-
Promise.<*>
A Promise of language data.
(async) getPrimaryTranslationsAsync() → {Promise.<*>}
Gets the officially supported translations in TMDb.
Returns:
- Type:
-
Promise.<*>
A Promise of translation data.
(async) getTimezonesAsync() → {Promise.<*>}
Gets the timezones used in TMDb.
Returns:
- Type:
-
Promise.<*>
A Promise of timezone data.