dramabox-api-client
v1.0.9
Published
DramaBox API Client - Requires API key
Maintainers
Readme
DramaBox API Client
Installation
npm install dramabox-api-clientSetup
You need an API key to use this package.
Set API Key
Windows:
set DRAMABOX_API_KEY=your_api_key_hereLinux/Mac:
export DRAMABOX_API_KEY=your_api_key_hereIn code (.env file with dotenv):
require('dotenv').config();
// DRAMABOX_API_KEY=your_key in .env fileUsage
const { DramaBoxClient } = require('dramabox-api-client');
async function main() {
const client = new DramaBoxClient();
await client.init();
// Get theater data
const theater = await client.getTheater();
console.log(theater);
// Search
const results = await client.search('love');
console.log(results);
}
main();API Methods
init()- Initialize and get tokengetTheater(options)- Get home pagegetLatest(options)- Get latest dramasgetChannels(options)- Get channelsgetRecommend(options)- Get recommendationsgetClassify(options)- Get categories/filterssearch(keyword, options)- Search dramasgetBook(bookId)- Get book detailsgetChapters(bookId, options)- Get chapters
Get API Key
Contact the developer to purchase an API key.
