From f358beb6d57d54b2f43cde964da4b894972d8a7f Mon Sep 17 00:00:00 2001 From: Wise Colt Date: Sat, 28 Mar 2020 19:43:45 +0300 Subject: [PATCH] add IDE helper --- example/getinfo.js | 2 +- lib/index.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/example/getinfo.js b/example/getinfo.js index c3cf6b6..48193c5 100644 --- a/example/getinfo.js +++ b/example/getinfo.js @@ -3,7 +3,7 @@ const GetFlix = require('../index'); const getflix = new GetFlix('d9d6007d1bcf12043db5a085ae3e5bbb'); const getInfo = async () => { try { - const info = await getflix.get('80244780'); + const info = await getflix.get(80244780); console.log(info); } catch (error) { diff --git a/lib/index.js b/lib/index.js index 71b4bfd..520b655 100644 --- a/lib/index.js +++ b/lib/index.js @@ -15,7 +15,11 @@ class FlixInfo { this.tmdbApiKey = opt; } - + /** + * Get movie/show info + * @param {number} netflixId + * @return {JSON} + */ get(netflixId) { // Imdb id page