UNPKG

identify-media

Version:

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

16 lines (13 loc) 421 B
import {RequestConfig, TmdbExternalIDsQuery} from "../index"; const getExternalIDs = (query: TmdbExternalIDsQuery, apikey: string): RequestConfig => { return { method: 'GET', baseURL: 'https://api.themoviedb.org', params: { api_key: apikey }, url: `/3/${query.type}/${query.id}/external_ids`, responseType: 'json', }; } export default getExternalIDs;