WatchProvidersSection

tmdb-js/sections/types. WatchProvidersSection

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

Gets the available regions of watch providers.
Source:
Returns:
Type:
Promise.<*>
A Promise of region data in JSON format.

(async) getMovieProvidersAsync(watchRegion) → {Promise.<*>}

Gets the movie providers.
Source:
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.
Source:
Parameters:
Name Type Description
watchRegion string The watch region.
Returns:
Type:
Promise.<*>
A Promise of TV show provider data in JSON format.