@odyssoft/tmdb
Version:
Unofficial TMDB v3 api wrapper, built using TypeScript and node.js
24 lines (23 loc) • 900 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Trending = void 0;
const request_1 = __importDefault(require("./request"));
const Trending = (apiKey) => ({
/**
* Get the trending people on TMDB.
* @param {string} time_window
* @returns Promise<TrendingPeople>
*/
People: (time_window = 'day', options) => (0, request_1.default)(apiKey, `/trending/person/${time_window}`, options),
/**
* Get the trending TV shows on TMDB.
* @param {string} time_window
* @returns Promise<TrendingShows>
*/
TV: (time_window = 'day', options) => (0, request_1.default)(apiKey, `/trending/tv/${time_window}`, options),
});
exports.Trending = Trending;
exports.default = exports.Trending;