dialogflow / dialogflow-cordova-client

Cordova library for Dialogflow
Apache License 2.0
42 stars 23 forks source link

API AI Request Error on Android Device #52

Open santad1234 opened 5 years ago

santad1234 commented 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") }) });