new WatchProvidersSection(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) getAvailableRegionsAsync() → {Promise.<*>}
Gets the available regions of watch providers.
Returns:
- Type:
-
Promise.<*>
A Promise of region data in JSON format.
(async) getMovieProvidersAsync(watchRegion) → {Promise.<*>}
Gets the movie providers.
Parameters:
Name | Type | Description |
---|---|---|
watchRegion |
string
|
The watch region. |
Returns:
- Type:
-
Promise.<*>
A Promise of movie provider data in JSON format.
(async) getTvShowProvidersAsync(watchRegion) → {Promise.<*>}
Gets the TV show providers.
Parameters:
Name | Type | Description |
---|---|---|
watchRegion |
string
|
The watch region. |
Returns:
- Type:
-
Promise.<*>
A Promise of TV show provider data in JSON format.