You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
472 B
19 lines
472 B
3 years ago
|
|
||
|
const axios = require("axios");
|
||
|
|
||
|
const BASE_URL = `https://imdb8.p.rapidapi.com/title/find`
|
||
|
|
||
|
module.exports = {
|
||
|
getFilm: (whichFilm) => axios({
|
||
|
method:"GET",
|
||
|
url : BASE_URL,
|
||
|
headers: {
|
||
|
"content-type": "application/json",
|
||
|
"x-rapidapi-host": "imdb8.p.rapidapi.com",
|
||
|
"x-rapidapi-key": "6ab6142a4fmsh81bced26e343a0cp1dd24cjsn97139b9afab0"
|
||
|
},
|
||
|
params: {
|
||
|
q: whichFilm
|
||
|
}
|
||
|
})
|
||
|
}
|