Constructor
new FindSection(externalSource, apiKey, language)
Initializes this object.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
externalSource |
string
|
The time window of this trending section (see tmdb_utils.externalSources). | |
apiKey |
string
|
The TMDb API key. | |
language |
string
|
en-US | The language of queries, the default is "en-US". |
Members
Methods
(async) findAsync(externalId) → {Promise.<*>}
Finds media with the passed ID in the external source in question.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
externalId |
string
|
The external ID of the media (see tmdb_utils.externalSources for valid values). |
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data.