Constructor
new DiscoverSection(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) discoverMoviesAsync(settings) → {Promise.<*>}
Discovers movie data based on the passed settings.
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.
Parameters:
Name | Type | Description |
---|---|---|
settings |
exports.DiscoverTvShowSettings
|
The discover settings. |
Returns:
- Type:
-
Promise.<*>
A Promise of discovered TV show data.