I added support for the watch providers endpoints. The endpoints return the full list of supported region codes & the full list of watch providers.
Additions
New types: Region and WatchProvider
Watch Providers endpoint added to the TMDB class
Includes 3 GET endpoints: regions, tv providers, and movie providers
Benefit
Lets you store the watch providers in your own database
Test it out
const tmdb = new TMDB(<api key>);
// List the names of all the movie providers in the US
tmdb.watchProviders.getMovieProviders().then(response => {
response.results.forEach(provider => {
console.log(provider.provider_name);
});
});
// Get regions in english
tmdb.watchProviders.getRegions().then(console.log);
// Get regions in german
tmdb.watchProviders.getRegions('de').then(console.log);
Watch Providers endpoint!
I added support for the watch providers endpoints. The endpoints return the full list of supported region codes & the full list of watch providers.
Additions
Benefit
Lets you store the watch providers in your own database
Test it out