add netflix info method
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
const GetFlix = require('../index');
|
const GetFlix = require('../index');
|
||||||
|
|
||||||
const getflix = new GetFlix('YOUR API KEY');
|
const getflix = new GetFlix('d9d6007d1bcf12043db5a085ae3e5bbb');
|
||||||
const getInfo = async () => {
|
const getInfo = async () => {
|
||||||
try {
|
try {
|
||||||
const info = await getflix.get(80241239, 'en-EN');
|
const info = await getflix.getNetflixInfo(81159258);
|
||||||
|
// const info = await getflix.get(80241239, 'en-EN', 'tr');
|
||||||
console.log(info);
|
console.log(info);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user