DrakorID Wrapper
A simpe API Wrapper for DrakorID
Note
This package is only use ECMAScript 6 or higher
Installation
yarn add github:xct007/drakor-api-wrapper
Usage
import { latest, search, getCategory, getChannel, detail } from "src/index.js";
const latestDrakor = await latest();
const searchDrakor = await search("drakor");
const opts = {
page: 1,
count: 10,
};
const category = await getCategory(1123, opts);
const opts = {
page: 1,
count: 10,
};
const channel = await getChannel(1234, opts);
const c_ch_id = 1234;
const data = await detail(c_ch_id);
Test
yarn test
License
MIT