mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 11:15:12 +00:00
14 lines
408 B
JavaScript
Executable File
14 lines
408 B
JavaScript
Executable File
const { SunnahService } = require("m3o/sunnah");
|
|
|
|
// Get a list of books from within a collection. A book can contain many chapters
|
|
// each with its own hadiths.
|
|
async function getTheBooksWithinAcollection() {
|
|
let sunnahService = new SunnahService(process.env.MICRO_API_TOKEN);
|
|
let rsp = await sunnahService.books({
|
|
collection: "bukhari",
|
|
});
|
|
console.log(rsp);
|
|
}
|
|
|
|
getTheBooksWithinAcollection();
|