4chan-promise 中文文档教程
4chan-promise
具有承诺的 4Chan Javascript 客户端。
Usage
const chan = require("4chan-promise");
const paper = chan.getBoard("po");
async function printPages() {
const pages = await biz.threads();
console.log(pages);
}
async function getThread(threadId) {
const thread = await biz.thread(threadId);
}
printPages();
getThread(570368);
Schema
要了解如何有效地使用它,您需要知道返回的对象的结构是什么。 请在此处查看。
4chan-promise
4Chan Javascript Client with Promises.
Usage
const chan = require("4chan-promise");
const paper = chan.getBoard("po");
async function printPages() {
const pages = await biz.threads();
console.log(pages);
}
async function getThread(threadId) {
const thread = await biz.thread(threadId);
}
printPages();
getThread(570368);
Schema
To see how to use this effectively, you need to know what is the structure of the objects returned. Check it out here.
更多