mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 20:14:47 +00:00
Generate clients (#206)
This commit is contained in:
12
examples/answer/question/node/askAQuestion.js
Executable file
12
examples/answer/question/node/askAQuestion.js
Executable file
@@ -0,0 +1,12 @@
|
||||
import * as answer from "m3o/answer";
|
||||
|
||||
// Ask a question and receive an instant answer
|
||||
async function AskAquestion() {
|
||||
let answerService = new answer.AnswerService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await answerService.question({
|
||||
query: "google",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await AskAquestion();
|
||||
Reference in New Issue
Block a user