Files
flixinfo/example/getinfo.js
Wise Colt 83f89695c9 bu fixes
2020-03-31 02:05:55 +03:00

17 lines
375 B
JavaScript

const GetFlix = require('../index');
const getflix = new GetFlix('d9d6007d1bcf12043db5a085ae3e5bbb');
const getInfo = async () => {
try {
const info = await getflix.get(80244780, 'tr-TR');
// info.credits.cast.forEach((f) => console.log(f.profile_path));
console.log(info);
} catch (error) {
console.log(error);
}
}
getInfo();