add IDE helper

This commit is contained in:
Wise Colt
2020-03-28 19:43:45 +03:00
parent 06f0ab484e
commit f358beb6d5
2 changed files with 6 additions and 2 deletions

View File

@@ -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) {

View File

@@ -15,7 +15,11 @@ class FlixInfo {
this.tmdbApiKey = opt;
}
/**
* Get movie/show info
* @param {number} netflixId
* @return {JSON}
*/
get(netflixId) {
// Imdb id page