vtmdb
A more modern package to access the content of TMDb.
🚧 This package is in alpha stage. Use at your own risk! 🚧
⚙️ Installation
In your project root folder, enter the following command in the terminal:
$ yarn add vtmdb
or, if you use NPM:
$ npm install vtmdb
🤖 Usage
Import the class Tmdb
in your project and initialize it passing the parameters for the API key and the language that you want to get the results. For example, new Tmdb('pt-BR')
will return results in Brazilian Portuguese.
If no language parameter is specified then the default language will be set to English.
Get a show by ID
// Import the package in your script and initialize the Tmdb class // Get the details of the show "The Simpsons"tmdb.getShow'tt0096697' .thenconsole.log
And the response should be something similar to this:
Documentation
For detailed information on how to use this package, please check the API reference for more examples.
📝 License
vtmdb is released under the ISC License. See LICENSE for details.
👨🏾💻 Author
Vinicius Egidio (vinicius.io)