Open santad1234 opened 5 years ago
import {ApiAiClient} from "api-ai-javascript";
platform.ready().then(() => { const client = new ApiAiClient({accessToken: 'aaaaaaaaaaaa'}); client.textRequest('Hello!') .then((response) => { this.alertController("y","y") }) .catch((error) => { this.alertController("n","n") }) });
import {ApiAiClient} from "api-ai-javascript";
platform.ready().then(() => {
const client = new ApiAiClient({accessToken: 'aaaaaaaaaaaa'}); client.textRequest('Hello!') .then((response) => { this.alertController("y","y") }) .catch((error) => { this.alertController("n","n") }) });