@odyssoft/tmdb
Version:
Unofficial TMDB v3 api wrapper, built using TypeScript and node.js
28 lines (27 loc) • 1.38 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const request_1 = __importDefault(require("./request"));
const WatchProviders = (apiKey) => ({
/**
* Returns a list of all of the countries we have watch provider (OTT/streaming) data for.
* @param {object} options
* @returns Promise<WatchProvidersRegions>
*/
GetAvailableRegions: (options) => (0, request_1.default)(apiKey, `/watch/providers/regions`),
/**
* Returns a list of the watch provider (OTT/streaming) data we have available for movies. You can specify a watch_region param if you want to further filter the list by country.
* @param {object} options
* @returns Promise<WatchProviders>
*/
GetMovieProviders: (options) => (0, request_1.default)(apiKey, `/watch/providers/movie`, options),
/**
* Returns a list of the watch provider (OTT/streaming) data we have available for TV series. You can specify a watch_region param if you want to further filter the list by country.
* @param {object} options
* @returns Promise<WatchProviders>
*/
GetTVProviders: (options) => (0, request_1.default)(apiKey, `/watch/providers/tv`, options),
});
exports.default = WatchProviders;