add IDE helper
This commit is contained in:
@@ -3,7 +3,7 @@ const GetFlix = require('../index');
|
|||||||
const getflix = new GetFlix('d9d6007d1bcf12043db5a085ae3e5bbb');
|
const getflix = new GetFlix('d9d6007d1bcf12043db5a085ae3e5bbb');
|
||||||
const getInfo = async () => {
|
const getInfo = async () => {
|
||||||
try {
|
try {
|
||||||
const info = await getflix.get('80244780');
|
const info = await getflix.get(80244780);
|
||||||
console.log(info);
|
console.log(info);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -15,7 +15,11 @@ class FlixInfo {
|
|||||||
this.tmdbApiKey = opt;
|
this.tmdbApiKey = opt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get movie/show info
|
||||||
|
* @param {number} netflixId
|
||||||
|
* @return {JSON}
|
||||||
|
*/
|
||||||
get(netflixId) {
|
get(netflixId) {
|
||||||
|
|
||||||
// Imdb id page
|
// Imdb id page
|
||||||
|
|||||||
Reference in New Issue
Block a user