identify-media
Version:
Analyse file path and content to make search criteria for media APIs
18 lines (15 loc) • 528 B
text/typescript
import {RequestConfig, TmdbGetTVShowQuery} from "../index";
const getTVShow = (query: TmdbGetTVShowQuery, apikey: string): RequestConfig => {
return {
method: 'GET',
baseURL: 'https://api.themoviedb.org',
params: {
api_key: apikey,
language: query.language,
append_to_response: 'external_ids,credits,keywords,images,videos,episode_groups,translations'
},
url: `/3/tv/${query.id}`,
responseType: 'json',
};
}
export default getTVShow;