mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-17 05:14:52 +00:00
Generate clients (#206)
This commit is contained in:
12
examples/quran/summary/node/getChapterSummary.js
Executable file
12
examples/quran/summary/node/getChapterSummary.js
Executable file
@@ -0,0 +1,12 @@
|
||||
import * as quran from "m3o/quran";
|
||||
|
||||
// Get a summary for a given chapter (surah)
|
||||
async function GetChapterSummary() {
|
||||
let quranService = new quran.QuranService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await quranService.summary({
|
||||
chapter: 1,
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await GetChapterSummary();
|
||||
Reference in New Issue
Block a user