UNPKG

identify-media

Version:

Analyse file path and content to make search criteria for media APIs

17 lines 526 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const getMovie = (query, apikey) => { return { method: 'GET', baseURL: 'https://api.themoviedb.org', params: { api_key: apikey, language: query.language, append_to_response: 'external_ids,credits,keywords,images,videos,translations' }, url: `/3/movie/${query.id}`, responseType: 'json', }; }; exports.default = getMovie; //# sourceMappingURL=getMovie.js.map