example api key hidden

This commit is contained in:
Wise Colt
2020-03-31 21:44:15 +03:00
parent bb33c8450a
commit f80585173f

View File

@@ -1,10 +1,9 @@
const GetFlix = require('../index'); const GetFlix = require('../index');
const getflix = new GetFlix('d9d6007d1bcf12043db5a085ae3e5bbb'); const getflix = new GetFlix('YOUR API KEY');
const getInfo = async () => { const getInfo = async () => {
try { try {
const info = await getflix.get(80244780, 'tr-TR'); const info = await getflix.get(80241239, 'en-EN');
// info.credits.cast.forEach((f) => console.log(f.profile_path));
console.log(info); console.log(info);
} catch (error) { } catch (error) {