From e69567819b8c77bbd964aefc2a488efe1a6c6d90 Mon Sep 17 00:00:00 2001 From: Bherwani Ayush Date: Sun, 21 Apr 2019 18:45:15 +0530 Subject: [PATCH] Update dialogflow_v2.dart Support for v2 beta features of the Dialogflow added. --- lib/v2/dialogflow_v2.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/dialogflow_v2.dart b/lib/v2/dialogflow_v2.dart index d5a695d..8c1e466 100644 --- a/lib/v2/dialogflow_v2.dart +++ b/lib/v2/dialogflow_v2.dart @@ -111,7 +111,7 @@ class Dialogflow { const Dialogflow({@required this.authGoogle, this.language="en"}); String _getUrl() { - return "https://dialogflow.googleapis.com/v2/projects/${authGoogle.getProjectId}/agent/sessions/${authGoogle.getSessionId}:detectIntent"; + return "https://dialogflow.googleapis.com/v2beta1/projects/${authGoogle.getProjectId}/agent/sessions/${authGoogle.getSessionId}:detectIntent"; } Future detectIntent(String query) async {